globalChat: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \| *(game[0-9]|version[0-9]|gr[0-9]|serverExec|mp|pr|descr|s[0-9]|p[0-9]{1,3}|r[0-9]|x1?[0-9]|seealso) *= +" to " |$1= ")
m (Changed unitName to unit to avoid misunderstandings)
 
(10 intermediate revisions by one other user not shown)
Line 28: Line 28:
|gr1= Radio and Chat
|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]])
|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= unitName [[globalChat]] chatText
|s1= unit [[globalChat]] chatText


|p1= unitName: [[Object]] - unit transmitting message
|p1= unit: [[Object]] - unit transmitting message


|p2= chatText: [[String]] - message to transmit
|p2= chatText: [[String]] - message to transmit


|r1=[[Nothing]]
|r1= [[Nothing]]


|x1= <code>_soldierOne [[globalChat]] "Show this text";</code>
|x1= <sqf>_soldierOne globalChat "Show this text";</sqf>
|x2= [[File:xChat.jpg|right]]
|x2= [[File:xChat.jpg|right]]
[[driver]] [[vehicle]] [[player]] [[sideChat]] "sideChat";
<sqf>
[[driver]] [[vehicle]] [[player]] [[globalChat]] "globalChat";
driver vehicle player sideChat "sideChat";
[[driver]] [[vehicle]] [[player]] [[groupChat]] "groupChat";
driver vehicle player globalChat "globalChat";
[[vehicle]] [[player]] [[vehicleChat]] "vehicleChat";
driver vehicle player groupChat "groupChat";
[[driver]] [[vehicle]] [[player]] [[commandChat]] "commandChat";
vehicle player vehicleChat "vehicleChat";
[[driver]] [[vehicle]] [[player]] [[customChat]] [1, "customChat"];
driver vehicle player commandChat "commandChat";
[[systemChat]] "systemChat";
driver vehicle player customChat [1, "customChat"];
<br><!-- needed for the text to display properly with the float…??? -->
systemChat "systemChat";
</sqf>


|seealso= [[sideChat]], [[groupChat]], [[vehicleChat]], [[commandChat]], [[customChat]], [[systemChat]], [[globalRadio]]
|seealso= [[sideChat]] [[groupChat]] [[vehicleChat]] [[commandChat]] [[customChat]] [[systemChat]] [[globalRadio]]
}}
}}


<dl class="command_description">
{{Note
<dt class="note">[[User:Ceeeb|Ceeeb]]</dt>
|user= Ceeeb
<dd class="note">
|timestamp= 20070131044700
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.
|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.
 
}}
</dl>

Latest revision as of 10: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.