Alliedassault           
FAQ Calendar
Go Back   Alliedassault > FPS Gaming General Discussion > MoH Maps, Mods & Skins
Reload this Page Spawning a radio via script with sound
MoH Maps, Mods & Skins Discuss custom maps, skins and mods here.

Reply
 
Thread Tools Display Modes
Spawning a radio via script with sound
Old
  (#1)
loboveloz is Offline
Junior Member
 
Posts: 9
Join Date: Jan 2004
Location: some where in the world
  Send a message via MSN to loboveloz  
Default 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
  
Reply With Quote
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.12 by ScriptzBin
Copyright ©2000 - 2025, vBulletin Solutions Inc.
vBulletin Skin developed by: vBStyles.com
© 1998 - 2007 by Rudedog Productions | All trademarks used are properties of their respective owners. All rights reserved.