setRadioMsg: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
 
(52 intermediate revisions by 10 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| ofp |= Game name
|game1= ofp
|version1= 1.00


|1.00|= Game version
|game2= ofpe
|version2= 1.00


|eff= local |= Effects in MP
|game3= arma1
____________________________________________________________________________________________
|version3= 1.00


| Set radio message (0, 0, map radio) to given text. Use "NULL" to disable radio slot. |= Description
|game4= arma2
____________________________________________________________________________________________
|version4= 1.00


| index '''setRadioMsg''' "text" |= Syntax
|game5= arma2oa
|version5= 1.50


|p1= index: [[Number]] |= Parameter 1
|game6= tkoh
|version6= 1.00


|p2= text: [[String]] |= Parameter 2
|game7= arma3
|version7= 0.50


| [[Nothing]] |= Return value
|eff= local
____________________________________________________________________________________________
 
|x1= <pre>1 setRadioMsg "Alpha Radio"</pre> |= Example 1
____________________________________________________________________________________________


| |= See also
|gr1= Triggers


}}
|gr2= Interaction
 
|descr= Sets radio trigger menu title text (0 -> 0 -> map radio). Use "NULL" to disable radio slot. Use "" to restore default title
 
|s1= index [[setRadioMsg]] text


<h3 style="display:none">Notes</h3>
|p1= index: [[Number]] - from 1 to 10
<dl class="command_description">
<!-- Note Section BEGIN -->


<dd class="notedate">Posted on August 4, 2006 - 12:00</dd>
* 1 - Alpha (key 1)
<dt class="note">'''[[User:Hardrock|hardrock]]'''</dt><dd class="note">''Notes from before the conversion:''
* 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)


Available channels are 1-8 in '''OFP:CWC''', and added 9 and 10 in '''OFP:R'''
|p2= text: [[String]]
</dd>


<!-- Note Section END -->
|r1= [[Nothing]]
</dl>


<h3 style="display:none">Bottom Section</h3>
|x1= <sqf>1 setRadioMsg "Click meeeeeeeeee"; //changes title of radio Alpha</sqf>


[[Category:Scripting Commands|SETRADIOMSG]]
|seealso= [[createTrigger]] [[setTriggerActivation]] [[setTriggerText]] [[showCommandingMenu]]
[[Category:Scripting Commands OFP 1.96|SETRADIOMSG]]
}}
[[Category:Scripting Commands OFP 1.46|SETRADIOMSG]]
[[Category:Scripting Commands ArmA|SETRADIOMSG]]
[[Category:Command_Group:_Radio_Control|{{uc:{{PAGENAME}}}}]]

Latest revision as of 10:24, 13 May 2022

Hover & click on the images for description

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

Additional Information

See also:
createTrigger setTriggerActivation setTriggerText showCommandingMenu

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note