OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Terox on 23 Mar 2003, 17:01:31

Title: disabling radio trigger in a script
Post by: Terox on 23 Mar 2003, 17:01:31

I am using a script that allows the admin to choose various options during the game setup

eg the param 1 and param 2 boxes

very simply
-------------------------------------------------
?(param2 == 9000):goto "standard"


#standard
XXXXXXXXXXXXXX
-------------------------------------------------------

and where the XXXXXX
i want to place a line that disables an "Activated by Bravo" radio trigger

the name of the trigger is "flagstatus"


any help would be appreciated
Title: Re:disabling radio trigger in a script
Post by: Killswitch on 23 Mar 2003, 23:48:31
Hmm...(me scratches head). Maybe this is what you want:
Code: [Select]
2 setRadioMsg "NULL";

This disables the second (Bravo) radio slot and also removes whatever text
that the trigger in question had set to display instead of the default "Bravo".

To re-enable it would mean calling something like
Code: [Select]
2 setRadioMsg "Show flag status";
...and the radio trigger will be useable again.

Title: Re:disabling radio trigger in a script
Post by: Terox on 24 Mar 2003, 02:22:55
thankyou