Remove particle when ended
#3

I use to use this:
pawn Код:
forward DestroyObjectPub(objectid);
public DestroyObjectPub(objectid)
{
    DestroyObject(objectid);
}
Then, when creating the particle object:
pawn Код:
SetTimerEx("DestroyObjectPub", time, 0, "i"; objectid_of_the_particle_object);
Where "time" is the estimated time the particle effect runs.
You could also combine this in a CreateTimedObject function that automatically creates and removes the object after a given time.
Reply


Messages In This Thread
Remove particle when ended - by DaneAMattie - 18.07.2011, 18:32
Re: Remove particle when ended - by Donya - 18.07.2011, 18:35
Re: Remove particle when ended - by Mauzen - 18.07.2011, 18:37

Forum Jump:


Users browsing this thread: 1 Guest(s)