globalChat: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Armed[ _]Assault(\|.*)]]" to "{{GameCategory|arma1|Scripting Commands}}")
m (Changed unitName to unit to avoid misunderstandings)
 
(32 intermediate revisions by 2 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 |Multiplayer Arguments=
|game3= arma1
|version3= 1.00


|eff= local |Multiplayer Effects=
|game4= arma2
|version4= 1.00


|gr1= Radio and Chat |GROUP1=
|game5= arma2oa
____________________________________________________________________________________________
|version5= 1.50


| 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=
|game6= tkoh
____________________________________________________________________________________________
|version6= 1.00


| unitName [[globalChat]] chatText |SYNTAX=
|game7= arma3
|version7= 0.50


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


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


| [[Nothing]] |RETURNVALUE=
|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]]).
|x1= <code>_soldierOne [[globalChat]] "Show this text";</code> |EXAMPLE1=
 
|s1= unit [[globalChat]] chatText
 
|p1= unit: [[Object]] - unit transmitting message
 
|p2= chatText: [[String]] - message to transmit
 
|r1= [[Nothing]]
 
|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";
|EXAMPLE2=
</sqf>


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


<h3 style="display:none">Notes</h3>
{{Note
<dl class="command_description">
|user= Ceeeb
<!-- Note Section BEGIN -->
|timestamp= 20070131044700
<dt class="note">[[User:Ceeeb|Ceeeb]]
|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.
<dd class="note">
}}
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.
 
<!-- Note Section END -->
</dl>
 
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.46|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.96|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
{{GameCategory|arma1|Scripting Commands}}
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]

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.