commandChat: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (template:command argument fix)
m (template:command argument fix)
Line 11: Line 11:
____________________________________________________________________________________________
____________________________________________________________________________________________


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


|p1= unitName: [[Object]] - unit transmitting message|= Parameter 1
|p1= unitName: [[Object]] - unit transmitting message|PARAMETER1=
|p2= chatText: [[String]] - message to transmit |= Parameter 2
|p2= chatText: [[String]] - message to transmit |PARAMETER2=


| [[Nothing]] |= Return value
| [[Nothing]] |RETURNVALUE=




|s2= [side, identity] '''commandChat''' chatText |= Syntax
|s2= [side, identity] '''commandChat''' chatText |SYNTAX=


|p21= [side, identity]: [[Array]] |= Parameter 1
|p21= [side, identity]: [[Array]] |PARAMETER1=
|p22= side: [[Side]] - side to which the message will be seen |= Parameter 2
|p22= side: [[Side]] - side to which the message will be seen |PARAMETER2=
|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 Arma 3 are:
* "Base"
* "Base"
Line 35: Line 35:
* "OPF"
* "OPF"
* "IND"
* "IND"
* "IND_G" |= Parameter 3
* "IND_G" |PARAMETER3=
|p24= chatText: [[String]] - message to transmit |= Parameter 4
|p24= chatText: [[String]] - message to transmit |PARAMETER4=
|r2=  [[Nothing]] |= Return value
|r2=  [[Nothing]] |RETURNVALUE=




Line 51: Line 51:
[[driver]] [[vehicle]] [[player]] [[customChat]] [1, "customChat"];
[[driver]] [[vehicle]] [[player]] [[customChat]] [1, "customChat"];
[[systemChat]] "systemChat";</code>
[[systemChat]] "systemChat";</code>
<br>[[Image:xChat.jpg]]|= Example 3
<br>[[Image:xChat.jpg]]|EXAMPLE3=


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


|  |MPBEHAVIOUR=  
|  |MPBEHAVIOUR=  

Revision as of 14:35, 7 April 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:
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";
xChat.jpg

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