commandChat: Difference between revisions
Jump to navigation
Jump to search
m (Bot: Reverted to revision 97022 by killzone_kid on 2016-08-04T19:35:58Z) |
m (template:command argument fix) |
||
Line 40: | Line 40: | ||
|x1= <code>_soldierOne [[commandChat]] "Show this text";</code>|= | |x1= <code>_soldierOne [[commandChat]] "Show this text";</code>|EXAMPLE1= | ||
|x2= <code><nowiki>[</nowiki>[[playerSide]], "HQ"] [[commandChat]] "Do this! That's an order!";</code>|= | |x2= <code><nowiki>[</nowiki>[[playerSide]], "HQ"] [[commandChat]] "Do this! That's an order!";</code>|EXAMPLE2= | ||
|x3= <code>[[driver]] [[vehicle]] [[player]] [[sideChat]] "sideChat"; | |x3= <code>[[driver]] [[vehicle]] [[player]] [[sideChat]] "sideChat"; | ||
Line 55: | Line 55: | ||
| [[globalChat]], [[groupChat]], [[vehicleChat]], [[sideChat]], [[customChat]], [[systemChat]], [[commandRadio]] |= See also | | [[globalChat]], [[groupChat]], [[vehicleChat]], [[sideChat]], [[customChat]], [[systemChat]], [[commandRadio]] |= See also | ||
| |= | | |MPBEHAVIOUR= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
}} | }} |
Revision as of 10:29, 7 April 2019
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";
Additional Information
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