I want the sound to loop until it hits the target height, but when trying to define this in SNDSEQ I either get an infinite loop of the sound that never ends, or it doesn't play at all. Also, I am unsure if the sound comes from the button now, or from the 3D sector (which would be preferable ofc). I can't seem to get the solution I seek. I know there's something crucial I am missing here ofc, but if the solution is somewhere in the zdoom wiki I do not seem to be able to find it.
My SNDSEQ definition
Code: Select all
:BridgeR
playrepeat plats/pt1_mid
stopsound plats/pt1_stop
endCode: Select all
script 33 (void) { // bridge raise
SoundSequence ("BridgeR");
Floor_RaiseByValue(32,8,120);
Ceiling_RaiseByValue(32,8,120);
}Code: Select all
script 34 (void) { // bridge raise t2
PlaySound(31,"BridgeR",CHAN_BODY,10.0,true,ATTN_NORM,false);
Floor_RaiseByValue(32,8,120);
Ceiling_RaiseByValue(32,8,120);
TagWait(32);
StopSound(31,CHAN_BODY);
}So any help or advice would as usual be highly appreciated.
