I have a problem with playsound command. I want to play a radio message for all players (in multiplayer). So I followed jv_map's 'Ubersound Workaround' tutorial and made this TIKI:
Code: Select all
TIKI
setup
{
path models/fx/dummy
skelmodel dummy3.skd
}
init
{
server
{
classname ScriptModel
rendereffects +dontdraw
notsolid
}
client
{
settiki none
aliascache en_hostage_rescued sound/dialogue/Multiplayer/a/hostage_rescued.wav soundparms 1.2 0.0 1.0 0.0 10000 10000 local streamed subtitle "A hostage has been rescued!" maps "dm obj"
}
}
animations
{
idle dummy3.skc
}
Code: Select all
// Play radio message for all players
for(local.playernum = 1; local.playernum <= $player.size; local.playernum++)
$player[local.playernum] playsound en_hostage_rescued
Rookie One


