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 Random Exploding Barrel
DRedshot Offline
Senior Member

Posts: 374
Threads: 23
Joined: Jun 2011
Reputation: 11
#2
RE: Random Exploding Barrel

try this

void badbarrel(string &in asEntity)
{

if(RandInt(1, 3) == 3)
{
SetPropHealth("badbarrel", 0);
}

}

only a minor change, but it should work this way, that's how I've used it anyhow, and it works Tongue
Edit: Actually, when is the 'badbarrel' function called? Have you made sure its callback isn't disabled after one use?

(This post was last modified: 04-24-2012, 12:15 AM by DRedshot.)
04-24-2012, 12:12 AM
Find


Messages In This Thread
Random Exploding Barrel - by overscore - 04-23-2012, 11:29 PM
RE: Random Exploding Barrel - by DRedshot - 04-24-2012, 12:12 AM
RE: Random Exploding Barrel - by overscore - 04-24-2012, 12:58 AM



Users browsing this thread: 1 Guest(s)