commandChat: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma2 | | arma2 | ||
|1.00 | |1.00 | ||
|arg= global | |arg= global | ||
|eff= local | |eff= local | ||
|gr1= Radio and Chat | |gr1= Radio and Chat | ||
|gr2= Sounds | |gr2= Sounds | ||
| 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]]) | | 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]]) | ||
| unitName [[commandChat]] chatText | | unitName [[commandChat]] chatText | ||
|p1= unitName: [[Object]] - unit transmitting message | |p1= unitName: [[Object]] - unit transmitting message | ||
|p2= chatText: [[String]] - message to transmit | |p2= chatText: [[String]] - message to transmit | ||
| [[Nothing]] | | [[Nothing]] | ||
|s2= [side, identity] [[commandChat]] chatText | |s2= [side, identity] [[commandChat]] chatText | ||
|p21= [side, identity]: [[Array]] |PARAMETER21= | |p21= [side, identity]: [[Array]] |PARAMETER21= | ||
Line 41: | Line 41: | ||
|p24= chatText: [[String]] - message to transmit |PARAMETER24= | |p24= chatText: [[String]] - message to transmit |PARAMETER24= | ||
|r2= [[Nothing]] | |r2= [[Nothing]] | ||
|x1= <code>_soldierOne [[commandChat]] "Show this text";</code> | |x1= <code>_soldierOne [[commandChat]] "Show this text";</code> | ||
|x2= <code>[<nowiki/>[[playerSide]], "HQ"] [[commandChat]] "Do this! That's an order!";</code> | |x2= <code>[<nowiki/>[[playerSide]], "HQ"] [[commandChat]] "Do this! That's an order!";</code> | ||
|x3= [[File:xChat.jpg|right]] | |x3= [[File:xChat.jpg|right]] | ||
Line 56: | Line 56: | ||
[[systemChat]] "systemChat"; | [[systemChat]] "systemChat"; | ||
<br><!-- needed for the text to display properly with the float…??? --> | <br><!-- needed for the text to display properly with the float…??? --> | ||
| [[globalChat]], [[groupChat]], [[vehicleChat]], [[sideChat]], [[customChat]], [[systemChat]], [[commandRadio]] | |||
| [[globalChat]], [[groupChat]], [[vehicleChat]], [[sideChat]], [[customChat]], [[systemChat]], [[commandRadio]] | |||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= |
Revision as of 00:13, 18 January 2021
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:
- Radio and ChatSounds
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