Pauses in a "LOOP"
#6

Yeah but explosions happens like a minigun! I don't want that, i want that the script waits 5 seconds before doing another explosions. I'm not a pro of PAWN coding, so please explain a bit.


Quote:
Originally Posted by Meta
Посмотреть сообщение
pawn Код:
forward ExplosionTimer();
public ExplosionTimer()
{
    CreateExplosion(-854.5049, 1538.4235, 22.5146, 2, 15);
}
Then use
pawn Код:
SetTimer("ExplosionTimer", 5000, 0);
to start the ExplosionTimer
If you want to kill it later, it's recommented to take a variable to store the Timer's ID in.
pawn Код:
new foo;
AnyFunction()
{
    foo = SetTimer("ExplosionTimer", 5000, 0);
}
...
//later to kill it
...
KillTimer(foo);
But, this kills the timer. It doesnt make it wait 5 seconds ..
Reply


Messages In This Thread
Pauses in a "LOOP" - by Dark734 - 05.01.2011, 00:00
AW: Pauses in a "LOOP" - by Meta - 05.01.2011, 00:09
Re: Pauses in a "LOOP" - by Dark734 - 05.01.2011, 00:10
Re: Pauses in a "LOOP" - by Calgon - 05.01.2011, 00:14
AW: Pauses in a "LOOP" - by Meta - 05.01.2011, 00:16
Re: Pauses in a "LOOP" - by Dark734 - 05.01.2011, 00:17
AW: Pauses in a "LOOP" - by Meta - 05.01.2011, 00:18
Re: Pauses in a "LOOP" - by Doom8890 - 05.01.2011, 00:19
AW: Re: Pauses in a "LOOP" - by Meta - 05.01.2011, 00:21
Re: AW: Re: Pauses in a "LOOP" - by Dark734 - 05.01.2011, 00:22

Forum Jump:


Users browsing this thread: 2 Guest(s)