OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Aculaud on 07 Oct 2002, 11:41:26

Title: External music plays only from location
Post 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?
Title: Re:External music plays only from location
Post by: Chris Death on 07 Oct 2002, 12:19:27
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
Title: Re:External music plays only from location
Post by: Gameer_77 on 07 Oct 2002, 15:10:16
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
Title: Re:External music plays only from location
Post by: seanver on 08 Oct 2002, 19:13:57
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"