radioChannelSetCallSign: Difference between revisions

From Bohemia Interactive Community
mNo edit summary
(Add parameters table)
 
Line 6: Line 6:
|game2= arma3
|game2= arma3
|version2= 0.50
|version2= 0.50
|arg= global
|eff= global


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


|descr= Set the custom radio chat channel's call sign. Since {{GVI|arma3|2.22|size= 0.75}} it is possible to also set VoN call sign
|descr= Set the custom radio chat channel's callsign / VoN callsign.


|s1= customChannelID [[radioChannelSetCallSign]] callSign
|s1= customChannelID [[radioChannelSetCallSign]] callSign
Line 17: Line 20:
|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]] - custom chat call sign (or since {{GVI|arma3|2.22|size= 0.75}} - [[Array]] with [callSign, callSignVoN]). Available special parameters:
|p2= callSign: [[String]] or {{GVI|arma3|2.22|size= 0.75}} [[Array]] - custom chat callsign or [callSign, callSignVoN]. Available parameters: <spoiler>
{{Columns|3|
{| class="wikitable"
* {{hl|$KEY}} (reference to a localised text)
! Parameter !! Description !! Example
* {{hl|%CHANNEL_LABEL}}
|-
* {{hl|%UNIT_SIDE}}
| {{hl|%$KEY}} || Reference a localised text || "%$STR_Q_North" &rarr; "North"
* {{hl|%UNIT_NAME}}
|-
* {{hl|%UNIT_RANK}}
| {{hl|%CHANNEL_LABEL}} || The channel's label - see [[radioChannelSetLabel]] || "Q-dance Radio"
* {{hl|%UNIT_ID}}
|-
* {{hl|%UNIT_REF}}
| {{hl|%UNIT_SIDE}} || Side's name, similar to [[sideRadio]] || "BLUFOR"
* {{hl|%UNIT_GRP_NAME}}
|-
* {{hl|%UNIT_GRP_LEADER}}
| {{hl|%UNIT_NAME}} || The '''''player'''''<nowiki/>'s or AI's name - see [[name]] || "John Doe"
* {{hl|%UNIT_VEH_NAME}}
|-
* {{hl|%UNIT_VEH_POSITION}}
| {{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>


|r1= [[Nothing]]
|r1= [[Nothing]]


|x1= <sqf>4 radioChannelSetCallSign "%UNIT_NAME";</sqf>
|x1= <sqf>4 radioChannelSetCallSign "(%UNIT_ID) %UNIT_RANK %UNIT_NAME%UNIT_GRP_LEADER"; // (1) Sgt Ben Kelly, group leader</sqf>
 
|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]]
}}
}}

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