Home   Help Search Login Register  

Author Topic: playing thru radio not working  (Read 698 times)

0 Members and 1 Guest are viewing this topic.

Offline trinec

  • Members
  • *
  • I'm a llama!
playing thru radio not working
« on: 01 Mar 2003, 04:50:35 »
ok i have a sound file the sound directory under my missions and its defined in the description.ext as a sound file and i can call it thru a trigger under sounds and it will play but i cant get it to play thru the radio one that you can add thru the editor and i put this in the init this say "soundname" but it doesnt play it at all. I also saved it at 44100 and 16 bit mono.
thanks

CrashnBurn

  • Guest
Re:playing thru radio not working
« Reply #1 on: 01 Mar 2003, 07:48:32 »
try- unitname sideradio "soundname"

the say command will make the unit speak the sound, but not thru the radio.
In the description.ext, the listing for the sound should be under class CfgRadio instead of class CfgSounds.
« Last Edit: 01 Mar 2003, 07:51:33 by CrashnBurn »

Offline toadlife

  • OFPEC Old Skool
  • Former Staff
  • ****
  • Official OFP Editing Center Toad
    • toadlife.net
Re:playing thru radio not working
« Reply #2 on: 03 Mar 2003, 07:50:01 »
no. hes talling about making one of those little radios play music. Try naming the radio something like "radio1", and make a trigger that's condition is true and put "radio1 say sound" in the on activation.

The way I do it is a script. like so:
You would execute it like this: radio1 exec "radio.sqs"
You would have to change the soudname in the script and the time it waits to the length of the sound you have.
Code: [Select]
#loop
_this say "radioloop"
~47.163
?!alive _this:exit
goto "loop"
"Whenever you want information on the 'net, don't ask a question; just post a wrong answer." -- Cancer Omega.

RP

  • Guest
Re:playing thru radio not working
« Reply #3 on: 07 Mar 2003, 20:18:43 »
Hey toadlife, a while ago i was wondering how could i do that with that crappy litle tune available in a trigger ("play  music" or something) in the sounds tab. Is it the same way? One would need to know the name of that sound file, right? But it is allready looped, so i guess it's not quite the same process, if at all possible.