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


Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to make wind blow
trancedj Offline
Member

Posts: 60
Threads: 7
Joined: Sep 2010
Reputation: 0
#1
How to make wind blow

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
11-24-2010, 08:06 PM
Find
LoneWolf Offline
Senior Member

Posts: 308
Threads: 43
Joined: Sep 2010
Reputation: 0
#2
RE: How to make wind blow

(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.
(This post was last modified: 11-24-2010, 09:29 PM by LoneWolf.)
11-24-2010, 09:28 PM
Find
trancedj Offline
Member

Posts: 60
Threads: 7
Joined: Sep 2010
Reputation: 0
#3
RE: How to make wind blow

thank you it runs well
11-24-2010, 10:34 PM
Find




Users browsing this thread: 1 Guest(s)