Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to make a particle system activate
Author Message
GreyFox Offline
Member

Posts: 162
Joined: Jul 2011
Reputation: 2
Post: #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 all posts by this user Quote this message in a reply
graykin Offline
Senior Member

Posts: 309
Joined: Oct 2008
Reputation: 4
Post: #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 all posts by this user Quote this message in a reply
GreyFox Offline
Member

Posts: 162
Joined: Jul 2011
Reputation: 2
Post: #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 all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)