(11-24-2010, 08:06 PM)trancedj Wrote: Hi every one.
I want to add a wind blow with a ps_dust particle in my outdoor map.
How do I make that?
what about the script?
Thanks
Use this script
CreateParticleSystemAtEntity(string& asPSName, string& asPSFile, string& asEntity, bool abSavePS);
put it in a script area. eg.
////////////////////////////
// Run first time starting map
void OnStart()
{
AddEntityCollideCallback("Player", "script1", "Collidescript1", true, 1);
}
void Collidescript1(string &in asParent, string &in asChild, int alState)
{
CreateParticleSystemAtEntity("name of ps file", "ps file actual name", " entity name", "i think this means if you want it to play again not sure"
}
If you dont understand name of ps file and ps file actual name and entity name. Then just call them all the same thing, eg. wind.ps would be its name and obviously the file name your refering to.
Hope this isnt confusing. To make a script area, go to areas tab and make script area after pressign on it, then call it script1.
http://wiki.frictionalgames.com/hpl2/amn..._functions for all scripts.