Arma 3 Scripting

Command in Radio and Chat, Sounds

commandChat

Also available as Markdown and JSON, or read the original wiki page.

Description

Types text to the command radio channel. The text will be visible only on the PC where command was executed. If you need the message to show on all computers, you have to execute it globally (see remoteExec). Use clearRadio to clear chat history

Important

The unit must have an assigned radio item (such as "ItemRadio") to see or transmit the messages. A radio item must have the property simulation = "ItemRadio"; in its CfgWeapons config.

Syntax

Syntax 1

unit commandChat chatText

Parameters:

Returns: Nothing

Syntax 2

[side, identity] commandChat chatText

Parameters:

Returns: Nothing

Examples

Example 1

_soldierOne commandChat "Show this text";

Example 2

[playerSide, "HQ"] commandChat "Do this! That's an order!";

Example 3

driver vehicle player sideChat "sideChat";
driver vehicle player globalChat "globalChat";
driver vehicle player groupChat "groupChat";
vehicle player vehicleChat "vehicleChat";
driver vehicle player commandChat "commandChat";
driver vehicle player customChat [1, "customChat"];
systemChat "systemChat";

See also

globalChat · groupChat · vehicleChat · sideChat · customChat · systemChat · commandRadio