setRadioMsg: Difference between revisions
Lou Montana (talk | contribs) m (Text replacement - "<code>([^ ]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^ ]*)<\/code>" to "<code>$1$2$3</code>") |
Killzone Kid (talk | contribs) No edit summary |
||
| (One intermediate revision by one other user not shown) | |||
| Line 28: | Line 28: | ||
|gr2= Interaction | |gr2= Interaction | ||
|descr= Sets radio trigger menu title text (0 -> 0 -> map radio). Use "NULL" to disable radio slot. Use "" to restore default title | |descr= Sets radio trigger menu title text (0 -> 0 -> map radio). Use "NULL" to disable radio slot. Use "" to restore default title. | ||
{{Feature|informative| The same effect could be achieved by using [[setTriggerText]] (see Example 2)}} | |||
|s1= index [[setRadioMsg]] text | |s1= index [[setRadioMsg]] text | ||
| Line 49: | Line 50: | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
|x1= < | |x1= <sqf>1 setRadioMsg "Click meeeeeeeeee"; //changes title of radio Alpha</sqf> | ||
|x2= <sqf>_radioTrigger setTriggerText "Click meeeeeeeeee"; //changes title of whatever radio the trigger was set to</sqf> | |||
|seealso= [[createTrigger]] [[setTriggerActivation]] [[setTriggerText]] [[showCommandingMenu]] | |seealso= [[createTrigger]] [[setTriggerActivation]] [[setTriggerText]] [[showCommandingMenu]] | ||
}} | }} | ||
Latest revision as of 01:28, 1 July 2026
Description
- Description:
- Sets radio trigger menu title text (0 -> 0 -> map radio). Use "NULL" to disable radio slot. Use "" to restore default title.
- Groups:
- TriggersInteraction
Syntax
- Syntax:
- index setRadioMsg text
- Parameters:
- index: Number - from 1 to 10
- 1 - Alpha (key 1)
- 2 - Bravo (key 2)
- 3 - Charlie (key 3)
- 4 - Delta (key 4)
- 5 - Echo (key 5)
- 6 - Foxtrot (key 6)
- 7 - Golf (key 7)
- 8 - Hotel (key 8)
- 9 - India (key 9)
- 10 - Juliet (key 0)
- text: String
- Return Value:
- Nothing
Examples
- Example 1:
- 1 setRadioMsg "Click meeeeeeeeee"; //changes title of radio Alpha
- Example 2:
- _radioTrigger setTriggerText "Click meeeeeeeeee"; //changes title of whatever radio the trigger was set to
Additional Information
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.00
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Operation Flashpoint: Elite: Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: Triggers
- Command Group: Interaction
- Scripting Commands: Local Effect