OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Chrispy on 04 Oct 2007, 03:52:56

Title: Car radio
Post 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
Title: Re: Car radio
Post by: Mandoble on 04 Oct 2007, 10:18:27
Check this (http://www.ofpec.com/forum/index.php?topic=28632.0)  ;)
Title: Re: Car radio
Post by: Chrispy on 16 Oct 2007, 07:43:15
Dang it's a Resistance map lol. That's fine mate, don't worry.

Chris :)