OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Blazin on 05 Oct 2007, 01:50:12
-
Basicly, in a multiplayer mission I want all vehicals to have the option to turn on radio, and that to initiate a script to play BIS songs (Using unit say "blah" so that players nearby the vehical can also hear it, even if that somehow means redefining BIS music as sounds in the description.ext). With the option to skip ones the playerss don't like.
I know a few small things but scripting stuff like this isn't my forte. So can y' gimme a hand, people?
It needs to work on vehicals that are "spawned" too, like in Crime City, Nogville, ect.
Would also be good if the script reduced the volumes of the songs played, as normal volume things are a tad loud when on say.
-
I'm the biggest newb at MP editting, but what I can tell you:
Volume:
Command :
FadeMusic
Description :
Decrease/increase the volume of the games music.
Syntax :
transitionTime FadeMusic volume
transitionTime is the time over which to do the change (in seconds) adjustment is the volume adjustment. If greater than 1 then it will increase the volume. If < 1 then the volume will be decreased.
Returns :
N/A
Example:
4 fadeMusic 0.5
Hope that works for volume.
Chris :)
-
Thanks... I'm more after the whole getting the action to be added to cars, and making it play for all computers...
But that might be usfull...