globalChat: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "_{10,} " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| ofp |Game name=
| ofp


|1.00|Game version=
|1.00


|arg= global |Multiplayer Arguments=
|arg= global


|eff= local |Multiplayer Effects=
|eff= local


|gr1= Radio and Chat |GROUP1=
|gr1= Radio and Chat


| 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]]) |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]])


| unitName [[globalChat]] chatText |SYNTAX=
| unitName [[globalChat]] chatText


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


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


| [[Nothing]] |RETURNVALUE=
| [[Nothing]]
   
   
|x1= <code>_soldierOne [[globalChat]] "Show this text";</code> |EXAMPLE1=
|x1= <code>_soldierOne [[globalChat]] "Show this text";</code>
|x2= [[File:xChat.jpg|right]]
|x2= [[File:xChat.jpg|right]]
  [[driver]] [[vehicle]] [[player]] [[sideChat]] "sideChat";
  [[driver]] [[vehicle]] [[player]] [[sideChat]] "sideChat";
Line 31: Line 31:
  [[systemChat]] "systemChat";
  [[systemChat]] "systemChat";
<br><!-- needed for the text to display properly with the float…??? -->
<br><!-- needed for the text to display properly with the float…??? -->
|EXAMPLE2=


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



Revision as of 00:40, 18 January 2021

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:
unitName globalChat chatText
Parameters:
unitName: 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:
sideChatgroupChatvehicleChatcommandChatcustomChatsystemChatglobalRadio

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

Ceeeb
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.

Bottom Section