commandChat: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(see also, locality, example)
Line 5: Line 5:


|1.00|= Game version
|1.00|= Game version
|arg= global |= Arguments in MP
|eff= local |= Effects in MP
____________________________________________________________________________________________
____________________________________________________________________________________________


| 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. |= 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. |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 16: Line 20:
|p2= chatText: [[String]] -  |= PARAMETER2  
|p2= chatText: [[String]] -  |= PARAMETER2  


|p3= |= PARAMETER3


| Nothing |= RETURNVALUE  
| [[Nothing]] |= RETURNVALUE  




|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";
[[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";</code>
<br>[[Image:xChat.jpg]]|= Example 1


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


|  |= MPBEHAVIOUR  
|  |= MPBEHAVIOUR  

Revision as of 23:45, 12 November 2014

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