Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: External music plays only from location  (Read 1207 times)

0 Members and 1 Guest are viewing this topic.

Aculaud

  • Guest
External music plays only from location
« 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?

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:External music plays only from location
« Reply #1 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
« Last Edit: 07 Oct 2002, 12:25:19 by Chris Death »
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted

Gameer_77

  • Guest
Re:External music plays only from location
« Reply #2 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

seanver

  • Guest
Re:External music plays only from location
« Reply #3 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"