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


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to make a wind effect?
Melvin Offline
Member

Posts: 245
Threads: 38
Joined: Jun 2012
Reputation: 5
#1
How to make a wind effect?

Hey FrictionalGames Forum,

I want to know how to make this scenario:

You walk into a room, and suddenly you hear wind whistling through your ears, and you see wind flowing towards you.

I know how to trigger the sound. (PlaySoundAtEntity etc.)
I know how to set up an area.

My main question here: In which catagory do I find the wind effects? (like in the first Amnesia level when a door is blown open by the wind) is it in the particles? If yes, how do I trigger a particle if the player colides with an area?

Thanks guys!
-SmokeMelvin

[Image: 25F7U37.png]
09-03-2012, 12:53 AM
Website Find
lolmaster Offline
Member

Posts: 170
Threads: 9
Joined: Jul 2012
Reputation: 6
#2
RE: How to make a wind effect?

CreateParticleSystemAtEntity(string& asPSName, string& asPSFile, string& asEntity, bool abSavePS);
It might be dust_whirl_large.


(This post was last modified: 09-03-2012, 01:03 AM by lolmaster.)
09-03-2012, 01:01 AM
Find
Melvin Offline
Member

Posts: 245
Threads: 38
Joined: Jun 2012
Reputation: 5
#3
RE: How to make a wind effect?

(09-03-2012, 01:01 AM)lolmaster Wrote: CreateParticleSystemAtEntity(string& asPSName, string& asPSFile, string& asEntity, bool abSavePS);
It might be dust_whirl_large.
Thanks its exactly what I looked for.

But, the script for the activation on colide... I tried this:

void AtStart()
{
AddEntityCollideCallback("Player", "Wind_Activate", "WindBlowing", true, 1);

}

void WindBlowing(string &in asParent, string &in asChild, int alState)
{
CreateParticleSystemAtEntity("", "ps_dust_whirl.ps", "WindBlow", false);
PlaySoundAtEntity("", "scare_wind.snt", "Player", 0, false); //Works
}

But no particle there.. am I doing something wrong?

[Image: 25F7U37.png]
09-03-2012, 01:44 AM
Website Find
Kazakarumariou Away
An angry man.

Posts: 283
Threads: 8
Joined: Jul 2012
Reputation: 14
#4
RE: How to make a wind effect?

Make a script area. Use that as "WindBlow". AKA Rename the script area as Windblow and erase the old thing
09-03-2012, 01:46 AM
Find
Melvin Offline
Member

Posts: 245
Threads: 38
Joined: Jun 2012
Reputation: 5
#5
RE: How to make a wind effect?

(09-03-2012, 01:46 AM)Harthex Wrote: Make a script area. Use that as "WindBlow". AKA Rename the script area as Windblow and erase the old thing
Ah! I get it.. I thought I had to place a particle. Thank you both very much!

[Image: 25F7U37.png]
09-03-2012, 02:26 AM
Website Find




Users browsing this thread: 1 Guest(s)