So, I'm having some problems with a certain script.
Basically, what I'm trying to do is to have a TriggerBox with a custom script, so when the player enters it, they're transported to XMarkerHeading and it plays a sound. The Xmarker is in the same cell as the triggerbox.
Fist I simply tried this:
begin OnTriggerActor player playsound (sound) player.moveto (xmarker)end
Off course, as those things often go, it was too simple to work.

I went back to the Wiki, and it seems those OnTrigger scripts need reset blocks. Since writing one's a bit out of my league I used the one on the wiki. So my script looks like this.
short triggeredfloat timerbegin onTriggerActor Player if triggered == 0 playsound (sound) player.moveto (xmarker) set triggered to 1 set timer to 1 ;1 delay before reset endifendbegin gameMode if triggered == 1 && timer <= 0 set triggered to 0 endif if timer >= 0 set timer to timer - getSecondsPassed endifend
The problem is... The problem still persists! So what's the problem, you ask? Well, when I first step in the box, it transports me and plays the sound, then it does that indefinately. The block still doesen't reset, even with 1 second delay. Any ideas?