OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: pazuzu on 02 Jul 2004, 05:11:06

Title: Hide radio command
Post by: pazuzu on 02 Jul 2004, 05:11:06
Hi,

How would I go about hiding radio command (Radio Alpha) until a trigger is set? I want to have an artillary strike called in by Radio command but I want it hidden until its needed.

Thank you
Title: Re:Hide radio command
Post by: ponq on 02 Jul 2004, 10:09:33
From the online command reference:

index setRadioMsg text

Operand types:
index: Number
text: String
Type of returned value:
Nothing
Description:
Set radio message (0, 0, map radio) to given text. Use "NULL" to disable radio slot.

Example:
0 setRadioMsg "Alpha Radio"

LCD    November 11, 2002, 04:22
There is no 0 channel in the radio so making

0 setRadioMsg "Alpha Radio"

will not work.

available channels are from

1-8 in OFP:CWC

and added

9 and 10 in OFP:R

____
So:
0 Setradiomsg "null"
 in your init.sqs to hide the radio.

Once the trigger is actived:
0 setradiomsg "your text here".