commandChat: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{Command " to "{{RV|type=command ")
m (Text replacement - " *\| *PARAMETER[0-9]{1,3} *= * " to " ")
Line 25: Line 25:
|s2= [side, identity] [[commandChat]] chatText
|s2= [side, identity] [[commandChat]] chatText


|p21= [side, identity]: [[Array]] |PARAMETER21=
|p21= [side, identity]: [[Array]]


|p22= side: [[Side]] - side to which the message will be seen |PARAMETER22=
|p22= side: [[Side]] - side to which the message will be seen


|p23= identity: [[String]] - class name of one of the identities in CfgHQIdentities. Possible identities in {{arma3}} are:
|p23= identity: [[String]] - class name of one of the identities in CfgHQIdentities. Possible identities in {{arma3}} are:
Line 37: Line 37:
* "OPF"
* "OPF"
* "IND"
* "IND"
* "IND_G" |PARAMETER23=
* "IND_G"


|p24= chatText: [[String]] - message to transmit |PARAMETER24=
|p24= chatText: [[String]] - message to transmit


|r2= [[Nothing]]
|r2= [[Nothing]]

Revision as of 18:13, 29 January 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Radio and ChatSounds

Syntax

Syntax:
Syntax needed
Parameters:
unitName: Object - unit transmitting message
chatText: String - message to transmit
Return Value:
Return value needed

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:
See also needed

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