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

Posts: 20
Threads: 8
Joined: Jan 2012
Reputation: 0
#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
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#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
Find




Users browsing this thread: 3 Guest(s)