radioChannelAdd: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
Line 19: Line 19:
|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= units: [[Array]] - list of units
|p2= units: [[Array]] of [[Object|Unit]]s - list of units


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

Latest revision as of 12: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.