Frictional Games Forum (read-only)

Full Version: Creating fire
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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)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.