Spawning a radio via script with sound -
01-23-2004, 11:57 PM
Hi everyone,
I've tried setting a sound to a object (radio), but every time i set the sound to play it says it needs an alias in ubersound.scr or uberdialog.scr, i have opened the ubersound.scr and used one of the alias that is arleady set for another map, but it still gives me the same error. the script is as follows:
local.radio = spawn script_model "model" "miscobj/radio_civilian.tik" "targetname" "radio"
local.radio.origin = local.position
local.radio.angles = local.angle
local.speaker = spawn script_origin "origin" local.position "targetname" "speaker"
local.speaker glue local.radio
$speaker playsound m2l3_radio1
I don't know if this is the proper way, the script is longer but the rest only contains a trigger that sets the radio on fire and turns the sound off when you fire at it. (some people in my clan hate the music in maps so i thought i would give them a way to turn the radios off) biggrin: .
Thanks for your help
|