Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 3 Vote(s) - 2.33 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help with making a script
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#13
RE: Need help with making a script

(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]
}

11-22-2010, 02:03 AM
Find


Messages In This Thread
Need help with making a script - by LoneWolf - 11-21-2010, 01:25 PM
RE: Need help with making a script - by Vincent - 11-21-2010, 03:16 PM
RE: Need help with making a script - by anzki - 11-21-2010, 03:29 PM
RE: Need help with making a script - by LoneWolf - 11-21-2010, 03:32 PM
RE: Need help with making a script - by LoneWolf - 11-21-2010, 04:58 PM
RE: Need help with making a script - by Kyle - 11-21-2010, 06:24 PM
RE: Need help with making a script - by LoneWolf - 11-21-2010, 09:27 PM
RE: Need help with making a script - by Kyle - 11-21-2010, 11:32 PM
RE: Need help with making a script - by LoneWolf - 11-22-2010, 12:59 AM
RE: Need help with making a script - by Kyle - 11-22-2010, 02:03 AM
RE: Need help with making a script - by anzki - 11-22-2010, 06:59 PM



Users browsing this thread: 1 Guest(s)