Frictional Games Forum (read-only)

Full Version: Need help with making a script
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
(11-21-2010, 09:27 PM)LoneWolf Wrote: [ -> ]I know this, i just dont know how to use them properly, and i dont understand what im supposed to put in some parts. Why do you always post meaningless things in my threads Kyle?

They are not pointless. Why should you ask, according to your first post, how to have noises and particle effects?

It says it in the script function page.

For example: CreateParticleSystemAtEntity(string& asPSName, string& asPSFile, string& asEntity, bool abSavePS); is the particle effect code. Just listen to what it asks. It wants the PSName in the first one, so you give it.

The thing that you should just do is to look at examples from the actual game and custom stories. It is easier and faster than asking the forums, as I learned from past experiences.
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.
(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]
}
Also use search! There is a million answers to that question(also). For example here!
Pages: 1 2