Frictional Games Forum (read-only)
[LVL EDITOR/SCRIPT HELP] Particle Systems - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: [LVL EDITOR/SCRIPT HELP] Particle Systems (/thread-20269.html)



[LVL EDITOR/SCRIPT HELP] Particle Systems - No Author - 02-10-2013

Hey guys !
I was just wondering, is it possible to make a particle system disappear or gone (Un-active) ?

Ex : The light dust or the area fog or water streams. The loop particle system I'm talking about.

Does it have to do in the level editor or in the script ?

Oh yeah, can you guys make it a simple one if it's possible ?

English isn't my first language. So I hope you'll understand.


RE: [LVL EDITOR/SCRIPT HELP] Particle Systems - The chaser - 02-10-2013

In the script. Just:

DestroyParticleSystem("Nameofparticle");


RE: [LVL EDITOR/SCRIPT HELP] Particle Systems - No Author - 02-10-2013

Can I make the particle system active again ?


RE: [LVL EDITOR/SCRIPT HELP] Particle Systems - The chaser - 02-10-2013

You'll need to create the particle system again.

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 shown/hidden state, so that this state can be restored
when the player revisits the level