radioChannelSetCallSign: Difference between revisions

From Bohemia Interactive Community
m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ |()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}")
(Add parameters table)
 
(17 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| TKOH
|game1= tkoh
|version1= 1.00


|1.00
|game2= arma3
|version2= 0.50
 
|arg= global
|eff= global


|gr1= Radio and Chat
|gr1= Radio and Chat
Line 9: Line 14:
|gr2= Custom Radio and Chat
|gr2= Custom Radio and Chat


| Set the custom radio channel's call sign.  
|descr= Set the custom radio chat channel's callsign / VoN callsign.


Available special parameters:
|s1= customChannelID [[radioChannelSetCallSign]] callSign
* $KEY (reference to a localized text)
* %CHANNEL_LABEL
* %UNIT_SIDE
* %UNIT_NAME
* %UNIT_RANK
* %UNIT_ID
* %UNIT_REF
* %UNIT_GRP_NAME
* %UNIT_GRP_LEADER
* %UNIT_VEH_NAME
* %UNIT_VEH_POSITION


| customChannelID [[radioChannelSetCallSign]] callSign
|p1= customChannelID: [[Number]] - [[Channel IDs|custom channel ID]] returned by [[radioChannelCreate]] command


|p1= customChannelID: [[Number]] - [[Channel IDs|custom channel ID]] returned by [[radioChannelCreate]] command
|p2= callSign: [[String]] or {{GVI|arma3|2.22|size= 0.75}} [[Array]] - custom chat callsign or [callSign, callSignVoN]. Available parameters: <spoiler>
{| class="wikitable"
! Parameter !! Description !! Example
|-
| {{hl|%$KEY}} || Reference a localised text || "%$STR_Q_North" &rarr; "North"
|-
| {{hl|%CHANNEL_LABEL}} || The channel's label - see [[radioChannelSetLabel]] || "Q-dance Radio"
|-
| {{hl|%UNIT_SIDE}} || Side's name, similar to [[sideRadio]] || "BLUFOR"
|-
| {{hl|%UNIT_NAME}} || The '''''player'''''<nowiki/>'s or AI's name - see [[name]] || "John Doe"
|-
| {{hl|%UNIT_RANK}} || A shorthand version of the unit's rank || "Sgt"
|-
| {{hl|%UNIT_ID}} || The unit's id in the group || "1"
|-
| {{hl|%UNIT_REF}} || The unit's log reference || "Unit123456"
|-
| {{hl|%UNIT_GRP_NAME}} || The group's name - see [[setGroupId]] || "Alpha 1-1"
|-
| {{hl|%UNIT_GRP_LEADER}} || Group leader mention (if the unit is its group's leader) || ", group leader"
|-
| {{hl|%UNIT_VEH_NAME}} || Display name of the unit's vehicle || "Hunter"
|-
| {{hl|%UNIT_VEH_POSITION}} || Unit's vehicle position, similar to [[vehicleRadio]] || "Gunner"
|-
| {{hl|%%}} || To display a normal percentage sign || {{n/a}}
|}
</spoiler>


|p2= callSign: [[String]] - custom call sign
|r1= [[Nothing]]


| [[Nothing]]
|x1= <sqf>4 radioChannelSetCallSign "(%UNIT_ID) %UNIT_RANK %UNIT_NAME%UNIT_GRP_LEADER"; // (1) Sgt Ben Kelly, group leader</sqf>


|x1= <code>4 [[radioChannelSetCallSign]] "%UNIT_NAME";</code>
|x2= <sqf>4 radioChannelSetCallSign ["%UNIT_VEH_POSITION, %UNIT_VEH_NAME", "%UNIT_NAME%UNIT_GRP_LEADER"];</sqf>


|seealso= [[radioChannelAdd]], [[radioChannelCreate]], [[radioChannelRemove]], [[radioChannelSetLabel]]
|seealso= [[radioChannelAdd]] [[radioChannelCreate]] [[radioChannelRemove]] [[radioChannelSetLabel]]
}}
}}
{{GameCategory|arma3|Scripting Commands}}

Latest revision as of 00:46, 2 April 2026

Hover & click on the images for description

Description

Description:
Set the custom radio chat channel's callsign / VoN callsign.
Groups:
Radio and ChatCustom Radio and Chat

Syntax

Syntax:
customChannelID radioChannelSetCallSign callSign
Parameters:
customChannelID: Number - custom channel ID returned by radioChannelCreate command
callSign: String or Arma 3 logo black.png 2.22 Array - custom chat callsign or [callSign, callSignVoN]. Available parameters:
Parameter Description Example
%$KEY Reference a localised text "%$STR_Q_North" → "North"
%CHANNEL_LABEL The channel's label - see radioChannelSetLabel "Q-dance Radio"
%UNIT_SIDE Side's name, similar to sideRadio "BLUFOR"
%UNIT_NAME The player's or AI's name - see name "John Doe"
%UNIT_RANK A shorthand version of the unit's rank "Sgt"
%UNIT_ID The unit's id in the group "1"
%UNIT_REF The unit's log reference "Unit123456"
%UNIT_GRP_NAME The group's name - see setGroupId "Alpha 1-1"
%UNIT_GRP_LEADER Group leader mention (if the unit is its group's leader) ", group leader"
%UNIT_VEH_NAME Display name of the unit's vehicle "Hunter"
%UNIT_VEH_POSITION Unit's vehicle position, similar to vehicleRadio "Gunner"
%% To display a normal percentage sign N/A
↑ Back to spoiler's top
Return Value:
Nothing

Examples

Example 1:
4 radioChannelSetCallSign "(%UNIT_ID) %UNIT_RANK %UNIT_NAME%UNIT_GRP_LEADER"; // (1) Sgt Ben Kelly, group leader
Example 2:
4 radioChannelSetCallSign ["%UNIT_VEH_POSITION, %UNIT_VEH_NAME", "%UNIT_NAME%UNIT_GRP_LEADER"];

Additional Information

See also:
radioChannelAdd radioChannelCreate radioChannelRemove radioChannelSetLabel

Notes

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