globalChat: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Changed unitName to unit to avoid misunderstandings)
 
(69 intermediate revisions by 11 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| ofp |= Game name
|game1= ofp
|version1= 1.00


|1.00|= Game version
|game2= ofpe
|version2= 1.00


|arg= global |= Arguments in MP
|game3= arma1
|version3= 1.00


|eff= local |= Effects in MP
|game4= arma2
____________________________________________________________________________________________
|version4= 1.00


| Make a unit send a text message over the global radio channel. |= Description
|game5= arma2oa
____________________________________________________________________________________________
|version5= 1.50


| unit '''globalChat''' text |= Syntax
|game6= tkoh
|version6= 1.00


|p1= unit: [[Object]] |= Parameter 1
|game7= arma3
|version7= 0.50


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


| [[Nothing]] |= Return value
|eff= local
____________________________________________________________________________________________
 
|x1= <pre>soldierOne globalChat "Show this text"</pre> |= Example 1
____________________________________________________________________________________________


| [[sideChat]], [[groupChat]], [[vehicleChat]] |= See also
|gr1= Radio and Chat


}}
|descr= Types text to the global radio channel. 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]]).
 
|s1= unit [[globalChat]] chatText
 
|p1= unit: [[Object]] - unit transmitting message
 
|p2= chatText: [[String]] - message to transmit
 
|r1= [[Nothing]]


<h3 style="display:none">Notes</h3>
|x1= <sqf>_soldierOne globalChat "Show this text";</sqf>
<dl class="command_description">
|x2= [[File:xChat.jpg|right]]
<!-- Note Section BEGIN -->
<sqf>
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";
</sqf>


<!-- Note Section END -->
|seealso= [[sideChat]] [[groupChat]] [[vehicleChat]] [[commandChat]] [[customChat]] [[systemChat]] [[globalRadio]]
</dl>
}}


<h3 style="display:none">Bottom Section</h3>
{{Note
[[Category:Scripting Commands|GLOBALCHAT]]
|user= Ceeeb
[[Category:Scripting Commands OFP 1.96|GLOBALCHAT]]
|timestamp= 20070131044700
[[Category:Scripting Commands OFP 1.46|GLOBALCHAT]]
|text= In '''OFP 1.96''', this command can be used by a [[Game_Logic]] unit, which will result in the text being displayed on screen without any  indication of the side of radio source, or quotation marks. For example : ''gamelogic1 globalchat "hello world"'' will create the text ''hello world'' in the radio log.
[[Category:Scripting Commands ArmA|GLOBALCHAT]]
}}

Latest revision as of 09:11, 2 February 2024

Hover & click on the images for description

Description

Description:
Types text to the global radio channel. 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 Chat

Syntax

Syntax:
unit globalChat chatText
Parameters:
unit: Object - unit transmitting message
chatText: String - message to transmit
Return Value:
Nothing

Examples

Example 1:
_soldierOne globalChat "Show this text";
Example 2:
xChat.jpg
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

See also:
sideChat groupChat vehicleChat commandChat customChat systemChat globalRadio

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
Ceeeb - c
Posted on Jan 31, 2007 - 04:47 (UTC)
In OFP 1.96, this command can be used by a Game_Logic unit, which will result in the text being displayed on screen without any indication of the side of radio source, or quotation marks. For example : gamelogic1 globalchat "hello world" will create the text hello world in the radio log.