Hello,
i’m new to this site but i have mapped for a bit yet.
Here my problem.
I’ve written the following script.(its supposed to open 2 Gates and close them after a defined time)
tor_RL
{
spawn
{
accum 2 set 0
}
trigger move_R
{
accum 2 abort_if_not_equal 0
trigger tor_RL open_RL
}
trigger open_RL
{
accum 2 set 1
trigger button_RU button_RU_in
trigger tor_RR open_RR
wait 500
playsound sound\movers\misc\big_gate1.wav volume 127
wait 350
playsound sound\movers\misc\big_gate2.wav volume 127 LOOPING
gotomarker door_RL_opened 15 wait
stopsound
wm_announce "The right Securitydoor has been opended"
playsound sound\movers\misc\big_gate3.wav volume 127
wait 30000
wm_announce "The right securitydoor will close in 30 seconds"
wait 15000
wm_announce "The right securitydoor will close in 15 seconds"
wait 10000
wm_announce "The right securitydoor will close in 5 seconds"
wait 5000
playsound sound\movers\misc\big_gate1.wav volume 127
wait 350
playsound sound\movers\misc\big_gate2.wav volume 127 LOOPING
gotomarker door_RL_closed 15 wait
stopsound
wm_announce "The right Securitydoor has been closed"
playsound sound\movers\misc\big_gate3.wav volume 127
wait 500
trigger button_RU button_RU_out
accum 2 set 0
resetscript
}
}
tor_RR
{
spawn
{
}
trigger open_RR
{
wait 850
gotomarker door_RR_opened 15 wait
wait 60350
gotomarker door_RR_closed 15 wait
resetscript
}
}
button_RU
{
trigger button_RU_in
{
gotomarker button_in_RU 100
playsound sound\movers\switches\switch_02.wav
}
trigger button_RU_out
{
gotomarker button_out_RU 100
playsound sound\movers\switches\switch_02.wav
}
}
It runs verry well but the lopped sound play 3 times short after another and after 20-25 seconds it starts a second time.
Ive tried to set a “accum check” at the beginning that it can’t be executed
if its allready running but it dosn’t work.
Can someone help?
Thanks
AKE