OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Aculaud on 07 Oct 2002, 11:41:26
-
Is there any way to make an external music file play from a certain location on the map and not just ambiantly? Like, if i wanted to make it look like the music was coming from some guy's radio or something...
Any thoughts?
-
unit playmusic "rockdahouse"
unit you could replace with an object aswell.
:edit - huh - wait,
unit playmusic ... doesn't work
better configure your music as sound and use:
unit say "rockdahouse"
this should do it then.
~S~ CD
-
Remember though, you'll need to change the description.ext to a sound instead of music.
I can't remember, but you may also need to change the music file to mono. But i don't know ::)
8)PEACE
-
Yes you have to change it to mono and if you wanna play the music repeteadly, create a script like this:
#loop
unit say "music"
~x
goto "loop"
Put the lenght of the song, in seconds, instead of x. Now create a trigger, condition true, On Activation [] exec "script.sqs"