OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Chrispy on 04 Oct 2007, 03:52:56
-
Well, this script has probably been made before, but I was thinking I could make myself a music/radio script anyway.
Well firstly, I was planning that if a player gets into a car, a few actions will be added to the menu:
- Radio on
- Radio off
- Volume low
- Volume medium
- Volume high
I know the script to put an action in is e.g: player addaction["Radio on","radio_on.sqs"] and I know to play music will be something like e.g: playMusic "HellsBells" but I'm not sure if this'll work on stock music (so will playMusic "05 - Secret" work?).
So my three questions are:
- Will stock music work on the playMusic command?
- If playMusic plays the music, then what command turns it off?
- How would I make it so that when the player gets in a car (or designated car) the trigger/new radio actions gets activated?
Thanks all.
:)
Chris
-
Check this (http://www.ofpec.com/forum/index.php?topic=28632.0) ;)
-
Dang it's a Resistance map lol. That's fine mate, don't worry.
Chris :)