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
Script Help Creating fire
Author Message
Sazureth Offline
Junior Member

Posts: 20
Joined: Jan 2012
Reputation: 0
Post: #1
Creating fire
On my current project I'm going to need to create a activate/deactivateable fire effect for burning chemicals, and I don't really know what would be the best way to do it.

I've tried with with PS's but I'm afraid you're unable to activate those with script? What other choices do I have..?
01-17-2012 09:01 PM
Find all posts by this user Quote this message in a reply
Statyk Offline
Modmau5

Posts: 3,634
Joined: Sep 2011
Reputation: 200
Post: #2
RE: Creating fire
(01-17-2012 09:01 PM)Sazureth Wrote:  I've tried with with PS's but I'm afraid you're unable to activate those with script?
Yes you can. There's:

void CreateParticleSystemAtEntity(string& asPSName, string& asPSFile, string& asEntity, bool abSavePS);
Creates a particle system on an entity.
asPSName - internal name
asPSFile - the particle system to use + extension .ps
asEntity - the entity to create the particle system at
abSavePS - determines whether a particle system should “remember” its state

And:

void DestroyParticleSystem(string& asName);
Destroys a particle system.

(This post was last modified: 01-17-2012 09:06 PM by Statyk.)
01-17-2012 09:06 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 




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