Heeey again.
I need an alert sound (using world/alarm_01.wav) to be played global / broadcast on certain events.
Problem :
- apparently, using a target_speaker is not possible for that since ET code has broken the GLOBAL flag
- using soundeditor speakers, i fail : the best I got is the alert sound play once, except it did not play from start - it behaves as a constant playing sound thats just temporarily unmuted by my script.
So, the question is very simple : what should i write in my script to make it sound just once ? What params on the speaker in the soundeditor ?
things i tried :
//trying to make it play once, quite like alertentity
togglespeaker spk
//trying to turn it on, play it, wait the length of sound, turn it off
enablespeaker spk
togglespeaker spk
wait 2000
disablespeaker spk
//trying to toggle on/off
togglespeaker spk
wait 2000
togglespeaker spk
I think this should be something like this, but for some reason no combination seems to work.
; _ ;