Frictional Games Forum (read-only)
Destroy particle system - 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: Destroy particle system (/thread-18201.html)



Destroy particle system - Lake - 09-07-2012

I put it on the map 6 Particle system, when in the game if the game develops an action I ordered this:

DestroyParticleSystem ("ParticleSystem_1.ps");
DestroyParticleSystem ("ParticleSystem_2.ps");
DestroyParticleSystem ("ParticleSystem_3.ps");
DestroyParticleSystem ("ParticleSystem_4.ps");
DestroyParticleSystem ("ParticleSystem_5.ps");
DestroyParticleSystem ("ParticleSystem_6.ps");

the problem is that you do not disable the PS .... why?


RE: Destroy particle system - i3670 - 09-07-2012

CreateParticleSystemAtEntity(string& asPSName, string& asPSFile, string& asEntity, bool abSavePS);

DestroyParticleSystem(string& asName);

Those two got to be the same


RE: Destroy particle system - Lake - 09-07-2012

(09-07-2012, 08:03 PM)i3670 Wrote: CreateParticleSystemAtEntity(string& asPSName, string& asPSFile, string& asEntity, bool abSavePS);

DestroyParticleSystem(string& asName);

Those two got to be the same
so you can not destroy the particle system made ​​in prior already in the map?


RE: Destroy particle system - i3670 - 09-07-2012

I don't think so. I am not that skilled with particle systems though, but I think I'm right.


RE: Destroy particle system - Robby - 09-07-2012

Let's say there is a particle system in a level called "SteamCloud". It is active, set through the Level Editor.

Using the
Code:
DestroyParticleSystem("SteamCloud");
function, it should work. If not, I dunno. But I think I tried something similar and I think it worked. Try this.

Replace "SteamCloud" with the name of the particle system that you want to destroy.