The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Need help with hazards
ooadrianoo Offline
Member

Posts: 82
Threads: 29
Joined: Apr 2012
Reputation: 0
#1
Need help with hazards

This is my first contacts with hazards.
There are 5 barrels. The barrels should be spawn randomly, and should removed randomly.
Here is my script:
PHP Code: (Select All)
void OnStart()
{
int iBarrel RandFloat(16);



AddTimer("remove_barrel"2"Remove_Barrel_Timer");

AddTimer("barrel"1"BarrelTimer");
}

void BarrelTimer(string &in asTimer)
{
SetEntityActive("barrel_" +iBarrel true);
AddTimer("barrel"3"BarrelTimer");
}



void Remove_Barrel_Timer(string &in asTimer)
{
if (
GetEntityExists("barrel_" +iBarrel) == true)
{
SetEntityActive("barrel_" +iBarrelfalse);
AddTimer("remove_barrel"5"Remove_Barrel_Timer");
}


Can anyone tell me, that I have done false?
09-22-2012, 01:55 AM
Find


Messages In This Thread
Need help with hazards - by ooadrianoo - 09-22-2012, 01:55 AM
RE: Need help with hazards - by Adny - 09-22-2012, 02:02 AM
RE: Need help with hazards - by Your Computer - 09-22-2012, 02:03 AM
RE: Need help with hazards - by ooadrianoo - 09-22-2012, 02:05 AM
RE: Need help with hazards - by Your Computer - 09-22-2012, 02:16 AM
RE: Need help with hazards - by ooadrianoo - 09-22-2012, 09:44 AM
RE: Need help with hazards - by WALP - 09-22-2012, 10:24 AM



Users browsing this thread: 1 Guest(s)