radioChannelAdd: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (corrected parameter)
No edit summary
 
(43 intermediate revisions by 4 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands]]
{{RV|type=command


{{Command|= Comments
|game1= tkoh
____________________________________________________________________________________________
|version1= 1.00


| TKOH |= Game name
|game2= arma3
|version2= 0.50


|1.00|= Game version
|eff= global
____________________________________________________________________________________________


| Add the units to the custom radio channel. |= Description
|gr1= Radio and Chat
____________________________________________________________________________________________


| index '''radioChannelAdd''' units|= Syntax
|gr2= Custom Radio and Chat


|p1= index: [[Number]] - custom radio channel index |= Parameter 1
|descr= Add the units to the custom channel.
|p2= units: [[Array]] - list of characters |= Parameter 2


| [[Nothing]] |= Return value
|s1= customChannelID [[radioChannelAdd]] units
____________________________________________________________________________________________


|x1= <code>2 radioChannelAdd [player, myCharacter1];</code> |=
|p1= customChannelID: [[Number]] - [[Channel IDs|custom channel ID]] returned by [[radioChannelCreate]] command


| [[radioChannelCreate]], [[radioChannelRemove]], [[radioChannelSetCallSign]], [[radioChannelSetLabel]] |= See also
|p2= units: [[Array]] - list of units


}}
|r1= [[Nothing]]


<h3 style="display:none">Notes</h3>
|x1= <sqf>2 radioChannelAdd [player, unit1];</sqf>
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|seealso= [[radioChannelCreate]] [[radioChannelRemove]] [[radioChannelSetCallSign]] [[radioChannelSetLabel]]
</dl>
}}


<h3 style="display:none">Bottom Section</h3>
{{Note
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]
|user= Hypoxic125
[[Category:Take On Helicopters: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]
|timestamp= 20221101063641
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
|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]].
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
}}

Latest revision as of 08:36, 1 November 2022

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 - 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.