radioChannelAdd: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "Channel IDsIcustomChannelID" to "customChannelID")
mNo edit summary
 
(24 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| TKOH |Game name=
|game1= tkoh
|version1= 1.00


|1.00|Game version=
|game2= arma3
|version2= 0.50


|eff= global|Multiplayer Effects=
|eff= global


|gr1= Radio and Chat |GROUP1=
|gr1= Radio and Chat


|gr2= Custom Radio and Chat |GROUP2=
|gr2= Custom Radio and Chat
____________________________________________________________________________________________


| Add the units to the custom radio channel. |DESCRIPTION=
|descr= Add the units to the custom channel.
____________________________________________________________________________________________


| customChannelID [[radioChannelAdd]] units|SYNTAX=
|s1= customChannelID [[radioChannelAdd]] units


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


|p2= units: [[Array]] - list of units |PARAMETER2=
|p2= units: [[Array]] of [[Object|Unit]]s - list of units


| [[Nothing]] |RETURNVALUE=
|r1= [[Nothing]]
____________________________________________________________________________________________


|x1= <code>2 [[radioChannelAdd]] [<nowiki/>[[player]], unit1];</code> |EXAMPLE1=
|x1= <sqf>2 radioChannelAdd [player, unit1];</sqf>


| [[radioChannelCreate]], [[radioChannelRemove]], [[radioChannelSetCallSign]], [[radioChannelSetLabel]] |SEEALSO=
|seealso= [[radioChannelCreate]] [[radioChannelRemove]] [[radioChannelSetCallSign]] [[radioChannelSetLabel]]
}}
}}


<h3 style="display:none">Notes</h3>
{{Note
<dl class="command_description">
|user= Hypoxic125
<!-- Note Section BEGIN -->
|timestamp= 20221101063641
 
|text= Units are removed from the chat channel on RESPAWN. Be sure to add units back to their custom chat channels upon respawn via [[Event_Scripts#onPlayerRespawn.sqf|onPlayerRespawn.sqf]] or [[Arma_3:_Event_Handlers#Respawn|Respawn Event Handler]].
<!-- Note Section END -->
}}
</dl>
 
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]

Latest revision as of 11:12, 16 June 2024

Hover & click on the images for description

Description

Description:
Add the units to the custom channel.
Groups:
Radio and ChatCustom Radio and Chat

Syntax

Syntax:
customChannelID radioChannelAdd units
Parameters:
customChannelID: Number - custom channel ID returned by radioChannelCreate command
units: Array of Units - list of units
Return Value:
Nothing

Examples

Example 1:
2 radioChannelAdd [player, unit1];

Additional Information

See also:
radioChannelCreate radioChannelRemove radioChannelSetCallSign radioChannelSetLabel

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
Hypoxic125 - c
Posted on Nov 01, 2022 - 06:36 (UTC)
Units are removed from the chat channel on RESPAWN. Be sure to add units back to their custom chat channels upon respawn via onPlayerRespawn.sqf or Respawn Event Handler.