commandChat: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:ArmA 2: New Scripting Commands List\|{{uc:{{PAGENAME}}}}\]\]\s*" to "")
(Fix example)
Line 13: Line 13:
| Types text to the command radio channel. Must have assigned "ItemRadio" to see or transmit the messages. 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]]) |DESCRIPTION=
| Types text to the command radio channel. Must have assigned "ItemRadio" to see or transmit the messages. 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]]) |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| unitName [[commandChat]] chatText |SYNTAX=
| unitName [[commandChat]] chatText |SYNTAX=
Line 30: Line 29:
|p22= side: [[Side]] - side to which the message will be seen |PARAMETER22=
|p22= side: [[Side]] - side to which the message will be seen |PARAMETER22=


|p23= identity: [[String]] - class name of one of the identities in CfgHQIdentities. Possible identities in Arma 3 are:
|p23= identity: [[String]] - class name of one of the identities in CfgHQIdentities. Possible identities in {{arma3}} are:
* "Base"
* "Base"
* "HQ"
* "HQ"
Line 45: Line 44:
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code>_soldierOne [[commandChat]] "Show this text";</code>|EXAMPLE1=  
|x1= <code>_soldierOne [[commandChat]] "Show this text";</code> |EXAMPLE1=  


|x2= <code><nowiki>[</nowiki>[[playerSide]], "HQ"] [[commandChat]] "Do this! That's an order!";</code>|EXAMPLE2=  
|x2= <code>[<nowiki/>[[playerSide]], "HQ"] [[commandChat]] "Do this! That's an order!";</code> |EXAMPLE2=  


|x3= <code>[[driver]] [[vehicle]] [[player]] [[sideChat]] "sideChat";
|x3= [[File:xChat.jpg|right]]
[[driver]] [[vehicle]] [[player]] [[globalChat]] "globalChat";
[[driver]] [[vehicle]] [[player]] [[sideChat]] "sideChat";
[[driver]] [[vehicle]] [[player]] [[groupChat]] "groupChat";
[[driver]] [[vehicle]] [[player]] [[globalChat]] "globalChat";
[[vehicle]] [[player]] [[vehicleChat]] "vehicleChat";
[[driver]] [[vehicle]] [[player]] [[groupChat]] "groupChat";
[[driver]] [[vehicle]] [[player]] [[commandChat]] "commandChat";
[[vehicle]] [[player]] [[vehicleChat]] "vehicleChat";
[[driver]] [[vehicle]] [[player]] [[customChat]] [1, "customChat"];
[[driver]] [[vehicle]] [[player]] [[commandChat]] "commandChat";
[[systemChat]] "systemChat";</code>
[[driver]] [[vehicle]] [[player]] [[customChat]] [1, "customChat"];
<br>[[Image:xChat.jpg]]|EXAMPLE3=
[[systemChat]] "systemChat";
<br><!-- needed for the text to display properly with the float…??? -->
|EXAMPLE3=


| [[globalChat]], [[groupChat]], [[vehicleChat]], [[sideChat]], [[customChat]], [[systemChat]], [[commandRadio]] |SEEALSO=
| [[globalChat]], [[groupChat]], [[vehicleChat]], [[sideChat]], [[customChat]], [[systemChat]], [[commandRadio]] |SEEALSO=

Revision as of 00:05, 19 December 2019

Hover & click on the images for description

Description

Description:
Types text to the command radio channel. Must have assigned "ItemRadio" to see or transmit the messages. 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)
Groups:
Uncategorised

Syntax

Syntax:
unitName commandChat chatText
Parameters:
unitName: Object - unit transmitting message
chatText: String - message to transmit
Return Value:
Nothing

Alternative Syntax

Syntax:
[side, identity] commandChat chatText
Parameters:
[side, identity]: Array
side: Side - side to which the message will be seen
identity: String - class name of one of the identities in CfgHQIdentities. Possible identities in Arma 3 are:
  • "Base"
  • "HQ"
  • "PAPA_BEAR"
  • "AirBase"
  • "BLU"
  • "OPF"
  • "IND"
  • "IND_G"
chatText: String - message to transmit
Return Value:
Nothing

Examples

Example 1:
_soldierOne commandChat "Show this text";
Example 2:
[playerSide, "HQ"] commandChat "Do this! That's an order!";
Example 3:
xChat.jpg
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";

Additional Information

See also:
globalChatgroupChatvehicleChatsideChatcustomChatsystemChatcommandRadio

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

Notes

Bottom Section