I use the scriptmaster to make a sound of radio for a trigger.
Well, this trigger is located above the objective, a radio of course, when the objective is completed, the sound dont stop.
How i stop the sound of trigger after complete the objective ?
Preparing sound...
Code: Select all
local.master = spawn ScriptMaster
local.master aliascache radio_snd sound/mechanics/Mec_RadioLoop_04.wav soundparms 0.5 0.0 1.0 0.0 256 256 auto loaded maps "dm moh obj train"
Code: Select all
start_sounds:
wait 1
$radio_sound1 loopsound radio_snd
end
Code: Select all
bomb1_exploded local.bomb1:
while (local.bomb1.exploded != 1)
wait .1
iprintlnbold "Allies have destroyed the Radio!"
end
