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 particle system activate
GreyFox Offline
Member

Posts: 162
Threads: 23
Joined: Jul 2011
Reputation: 2
#1
How to make a particle system activate

Hey, I understand theres the command

CreateParticleSystemAtEntity, but the thats not what I want.

I want to open a door and have a gust of wind/dust just blow down the hall. Would I do

SetEntityPlayerInteractCallback(string& asName, string& asCallback, bool abRemoveOnInteraction);

and then do PreloadParticleSystem(string& asPSFile);?

What does PreloadParticleSystem even do? (well preload it but what do that do?)

Is there a simple way of doing it.

-Grey Fox

Current Project
Forgotten
08-11-2011, 03:18 AM
Find
graykin Offline
Senior Member

Posts: 317
Threads: 12
Joined: Oct 2008
Reputation: 4
#2
RE: How to make a particle system activate

Yeah, you would probably want to call a SetEntityPlayerInteractCallback function.

PreloadParticleSystem simply loads a particle system into your memory, making the spawning of a particular particle system somewhat quicker, but it won't actually SPAWN a PS.

You would want to use the CreateParticleSystemAtEntity function--place a Script Area in the location you want the particle system to spawn, and then set the CreateParticleSystemAtEntity to make your one-shot particle system to spawn at that area.

08-11-2011, 03:33 AM
Find
GreyFox Offline
Member

Posts: 162
Threads: 23
Joined: Jul 2011
Reputation: 2
#3
RE: How to make a particle system activate

Ohh A Script Area is what i'd use? OMG thank you so much I didn't even realize I could do that!

Awesome Thanks!

-Grey Fox

Current Project
Forgotten
08-11-2011, 04:31 AM
Find




Users browsing this thread: 1 Guest(s)