(11-22-2010, 12:59 AM)LoneWolf Wrote: Okay you must not understand what i really want. I want to know how to make the particle effects work after i break the passageway. I have no idea how to make it happen at the right time, i can onyl make things happen when i walk into a script area.
You use time floats or you put the particle effect in a certain function that happens when you bust the wall down.
AddTimer(string& asName, float afTime, string& asFunction);
For example:
void Func(string &in asParent, string &in asChild, int alState)
{
AddTimer("[Anything]" , 2.0f [how long to wait before the next function starts] , "[Name of Function that will happen]);
}
void Func02(string &in asTimer)
{
[Whatever you want to happen. As in this case, the particle effect]
}