+- 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: [SCRIPT] ParticleSystem not disappearing (/thread-15367.html)
ParticleSystem not disappearing - i3670 - 05-10-2012
I have this little problem in my "Insanity Event"-thingy. When you enter an area alot of particle system become active and a chase moment occurs. It's just that if the person dies the particlesystems are still active ruining the entire thing.
RE: ParticleSystem not disappearing - Your Computer - 05-10-2012
You should have received a syntax error with that code.
It's not going to have a chance of working until you give that last code block a function header (i'm guessing it's supposed to have the same syntax as a checkpoint callback).
RE: ParticleSystem not disappearing - i3670 - 05-10-2012
Ye forgot to put the syntax. Edited the post.
RE: ParticleSystem not disappearing - Your Computer - 05-10-2012
I'm going to say the culprit is the 0 and possibly even the false for the AddEntityCollideCallback in OnStart.
RE: ParticleSystem not disappearing - i3670 - 05-10-2012
?
Tested it out but didn't seem to work. Also when I die I spawn in a really weird position and I can't move.
RE: ParticleSystem not disappearing - i3670 - 05-13-2012
Anyone know how to solve it? Cuz I don't.
RE: ParticleSystem not disappearing - Homicide13 - 05-13-2012
EDIT: Hurp, I'm good at reading.
I dunno, it should work.
The problem you're having is that the DestroyParticleSystem(string& asParticleSystem) isn't working?
Have you considered putting a debug message in your Reset_1 function to make 100% sure it works?
RE: ParticleSystem not disappearing - i3670 - 05-13-2012
Yes, when I die and get teleported to the checkpoint, the particlesystems are still active. So that's the problem and for some reason when I die I get revived in a really weird position and can't move.
As for the AddDebugMessage, I don't know how it works.