commandChat: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(see also, locality, example)
No edit summary
Line 26: Line 26:
|x1= <code>_soldierOne [[commandChat]] "Show this text";</code>|= EXAMPLE1  
|x1= <code>_soldierOne [[commandChat]] "Show this text";</code>|= EXAMPLE1  


|x2= <code>[[driver]] [[vehicle]] [[player]] [[sideChat]] "sideChat";
|x2= <code><nowiki>[</nowiki>[[playerSide]],"HQ"] [[commandChat]] "Do this! That's an order!"</code>|= EXAMPLE2
 
|x3= <code>[[driver]] [[vehicle]] [[player]] [[sideChat]] "sideChat";
[[driver]] [[vehicle]] [[player]] [[globalChat]] "globalChat";
[[driver]] [[vehicle]] [[player]] [[globalChat]] "globalChat";
[[driver]] [[vehicle]] [[player]] [[groupChat]] "groupChat";
[[driver]] [[vehicle]] [[player]] [[groupChat]] "groupChat";
Line 33: Line 35:
[[driver]] [[vehicle]] [[player]] [[customChat]] [1, "customChat"];
[[driver]] [[vehicle]] [[player]] [[customChat]] [1, "customChat"];
[[systemChat]] "systemChat";</code>
[[systemChat]] "systemChat";</code>
<br>[[Image:xChat.jpg]]|= Example 1
<br>[[Image:xChat.jpg]]|= Example 3


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

Revision as of 01:33, 7 August 2015

Hover & click on the images for description

Description

Description:
Types text to the command radio channel. Note: This function only types text to the list, it does not broadcast the message. If you want the message to show on all computers, you have to execute it on all of them.
Groups:
Uncategorised

Syntax

Syntax:
unit commandChat chatText
Parameters:
unit: Object or Array -
chatText: String -
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:
globalChatgroupChatvehicleChatsideChatcustomChatsystemChat

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