OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started 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?
-
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
-
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.
-
I just tried wolfie's suggestion, and it works beautifully. Much simpler!
-
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!!!!
-
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)
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"
-
cheers mate thanks for your help and patience guys