OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Crowey on 23 Feb 2009, 19:24:43

Title: Delayed radio option? [SOLVED]
Post by: Crowey on 23 Feb 2009, 19:24:43
Hi guys how do i go about making a radio option appear via a trigger? ie I dont want the player to be able to use for example"radio alpha" untill her reaches a certain area or fulfills a certain task?
Title: Re: Delayed radio option?
Post by: johnnyboy on 23 Feb 2009, 19:56:08
Create a trigger dynamically when you need it.  See the createTrigger command and its related commands in the wiki:

http://community.bistudio.com/wiki/createTrigger
Title: Re: Delayed radio option?
Post by: Wolfrug on 23 Feb 2009, 20:27:01
Or better yet, set the radio message to "NULL" at the start of the mission and then change it to whatever you want when you want it ->

setRadioMsg (http://www.ofpec.com/COMREF/index.php?action=details&id=314)

:)

Wolfrug out.
Title: Re: Delayed radio option?
Post by: johnnyboy on 23 Feb 2009, 20:37:12
I just tried wolfie's suggestion, and it works beautifully.  Much simpler!
Title: Re: Delayed radio option?
Post by: Crowey on 23 Feb 2009, 23:53:03
Sorry for being a tit but What do i do exactly? lol
Noob alert... anyone who can talk me through it would be doing me a favour!!!!
Title: Re: Delayed radio option?
Post by: Ext3rmin4tor on 24 Feb 2009, 15:27:23
Create a script file named "init.sqs" in your mission folder (Desktop\Documents\ArmA other profiels\yourProfiel\missions\yourMission.sara). It's a simple text file so you can edit it with notepad. Just add the following code
(it's for radio alpha, if you're using another channel use the proper number, see the link added by Wolfrug)

Code: [Select]
1 setRadioMsg "NULL"

Then when the proper condition is satisfied create a trigger with the required condition and in the activation field write 1 setRadioMsg "Whatever message you please"
Title: Re: Delayed radio option?
Post by: Crowey on 24 Feb 2009, 16:56:49
cheers mate thanks for your help and patience guys