Deleting then re-creating objects on timers
#2

pawn Код:
//The Timer Which will destroy bla bla,
SetTimer("flash",500,1);
pawn Код:
//this will be the variable which will check for the flash
new Flashing;
pawn Код:
forward flash();
public flash()
{
if(Flashing == 1)//We are checking for the object status
{
//Un-comment the lines bellow with the objects
//CreateObject(//first object bla bla
//CreateObject(//bla bla
}
else if(Flashing == 0)//We are checking for the object status
{
//Un-comment the lines bellow with the objects
//DestroyObject(//Destroying the first object
//CreateObject(//Destroying the Second object
}
}
Reply


Messages In This Thread
Deleting then re-creating objects on timers - by nmader - 16.02.2013, 14:32
Re: Deleting then re-creating objects on timers - by DaRk_RaiN - 16.02.2013, 14:38

Forum Jump:


Users browsing this thread: 2 Guest(s)