globalChat: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
[[Category:Scripting Commands|GLOBALCHAT]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|GLOBALCHAT]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|GLOBALCHAT]]
[[Category:Scripting Commands ArmA|GLOBALCHAT]]


| ofp |= Game name


<h2 style="color:#000066"> '''''unit'' globalChat ''chatText'''''</h2>
|1.00|= Game version


|arg= global |= Arguments in MP


'''Operand types:'''
|eff= local |= Effects in MP
____________________________________________________________________________________________


'''unit:''' [[Object]]<br>
| Make a unit send a text message over the global radio channel. |= Description
'''chatText:''' [[String]]
____________________________________________________________________________________________


'''Type of returned value:'''
| unit '''globalChat''' text |= Syntax


[[Nothing]]
|p1= unit: [[Object]] |= Parameter 1


'''Compatibility:'''
|p2= text: [[String]] - the message that should be sent |= Parameter 2


Changed in version '''1.34'''
| [[Nothing]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>soldierOne globalChat "Show this text"</pre> |= Example 1
____________________________________________________________________________________________


'''Description:'''
| [[sideChat]], [[groupChat]], [[vehicleChat]] |= See also


Type text to global radio channel.<br>
}}
'''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 them.
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
</dl>


'''Example:'''
<h3 style="display:none">Bottom Section</h3>
 
[[Category:Scripting Commands|GLOBALCHAT]]
soldierOne '''globalChat''' "Show this text"
[[Category:Scripting Commands OFP 1.96|GLOBALCHAT]]
[[Category:Scripting Commands OFP 1.46|GLOBALCHAT]]
[[Category:Scripting Commands ArmA|GLOBALCHAT]]

Revision as of 00:24, 2 August 2006

Hover & click on the images for description

Description

Description:
Make a unit send a text message over the global radio channel.
Groups:
Uncategorised

Syntax

Syntax:
unit globalChat text
Parameters:
unit: Object
text: String - the message that should be sent
Return Value:
Nothing

Examples

Example 1:
soldierOne globalChat "Show this text"

Additional Information

See also:
sideChatgroupChatvehicleChat

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