So I was working on my custom story when I decided upon making a function. In the script I have a callback for when the player enters an area (ScriptArea_1) and the function is called to make the player look at an object (hatch_ceiling_1) and it then calls multiple timers. However, all the timers are malfunctioning in that they make the sounds and particle effects loop. Here's an example:
You only have all of these sounds+particles set to play at one area: "ScriptArea_splash". I'd suggest making a trail of areas, and creating the sound+particle fx at each.
I think that was your intention, but perhaps you forgot to rename the 2nd/3rd functions after you copy and pasted the functions?
Hope that helped!
p.s. that video was scarier than most jump scare maps I've seen
Edit///
I think I might have misinterpreted your problem. Although the particle systems/sounds you're using don't loop on their own, you could use DestroyParticleSystem and the function Steve named.
I also don't think that syntax is right for "Splash"; perhaps it is called more than once and that's what leading to this looping of effects? Idk.
I rate it 3 memes.
(This post was last modified: 07-07-2012, 09:46 PM by Adny.)
(07-07-2012, 09:34 PM)andyrockin123 Wrote: You only have all of these sounds+particles set to play at one area: "ScriptArea_splash". I'd suggest making a trail of areas, and creating the sound+particle fx at each.
I think that was your intention, but perhaps you forgot to rename the 2nd/3rd functions after you copy and pasted the functions?
Hope that helped!
p.s. that video was scarier than most jump scare maps I've seen
Edit///
I think I might have misinterpreted your problem. Although the particle systems/sounds you're using don't loop on their own, you could use DestroyParticleSystem and the function Steve named.
I also don't think that syntax is right for "Splash"; perhaps it is called more than once and that's what leading to this looping of effects? Idk.
Yeah, sorry about that. I didn't have the entire script in there and forgot to add the timers.
I will do the "StopSound" and "DestroyParticleSystem" if I have to, but it just confuses me that it's not working. You'd think that it would work properly considering it's pretty much a replica of the order of events Frictional Games uses in Amnesia.
Alright, it seems I've found the problem.
For some reason, if you use the "StartPlayerLookAt" function, you really shouldn't have a function tied to the end for when you look at said object, otherwise this whole looping problem occurs.
Maybe it's a glitch, or maybe this function is used for different purposes, I don't know. However I have finally found a solution to the problem and I recommend anyone who is having this issue to try removing your function from "StartPlayerLookAt".
I appreciate both of your responses, Steve and andyrockin123. Thanks.
(This post was last modified: 07-07-2012, 10:44 PM by Wolpertenn.)