groupChat: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "Category:Scripting Commands ArmA2" to "Category:Scripting Commands Arma 2")
m (Changed unitName to unit to avoid tomfoolery)
 
(39 intermediate revisions by 3 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


| Types text to the group radio channel. Must have assigned "ItemRadio" to see or transmit the messages. 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=
|game5= arma2oa
____________________________________________________________________________________________
|version5= 1.50


| unitName [[groupChat]] chatText |SYNTAX=
|game6= tkoh
|version6= 1.00


|p1= unitName: [[Object]] - unit transmitting message|PARAMETER1=
|game7= arma3
|version7= 0.50


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


| [[Nothing]] |RETURNVALUE=
|eff= local
____________________________________________________________________________________________
 
|x1= <code>_soldierOne [[groupChat]] "Show this text";</code> |EXAMPLE1=


|x2= [[File:xChat.jpg|right]]
|gr1= Radio and Chat
[[driver]] [[vehicle]] [[player]] [[sideChat]] "sideChat";
 
[[driver]] [[vehicle]] [[player]] [[globalChat]] "globalChat";
|descr= Types text to the group 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]]).
[[driver]] [[vehicle]] [[player]] [[groupChat]] "groupChat";
 
[[vehicle]] [[player]] [[vehicleChat]] "vehicleChat";
{{Feature|important|The unit must have an [[assignItem|assigned]] radio item (such as '''''"ItemRadio"''''') to see or transmit the messages. A radio item must have the property <syntaxhighlight lang="cpp" inline>simulation = "ItemRadio";</syntaxhighlight> in its [[CfgWeapons_Config_Reference#simulation.3D.22Weapon.22|CfgWeapons config]].}}
[[driver]] [[vehicle]] [[player]] [[commandChat]] "commandChat";
 
[[driver]] [[vehicle]] [[player]] [[customChat]] [1, "customChat"];
|s1= unit [[groupChat]] chatText
[[systemChat]] "systemChat";
 
<br><!-- needed for the text to display properly with the float…??? -->
|p1= unit: [[Object]] - unit transmitting message
|EXAMPLE2=
 
|p2= chatText: [[String]] - message to transmit


| [[globalChat]], [[sideChat]], [[vehicleChat]], [[commandChat]], [[customChat]], [[systemChat]], [[groupRadio]] |SEEALSO=
|r1= [[Nothing]]
}}


<h3 style="display:none">Notes</h3>
|x1= <sqf>_soldierOne groupChat "Show this text";</sqf>
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|x2= [[File:xChat.jpg|right]]
</dl>
<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>


<h3 style="display:none">Bottom Section</h3>
|seealso= [[globalChat]] [[sideChat]] [[vehicleChat]] [[commandChat]] [[customChat]] [[systemChat]] [[groupRadio]]
[[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}}}}]]
[[Category:Scripting Commands ArmA|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Interaction|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Radio_Control|{{uc:{{PAGENAME}}}}]]

Latest revision as of 09:09, 2 February 2024

Hover & click on the images for description

Description

Description:
Types text to the group 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).
The unit must have an assigned radio item (such as "ItemRadio") to see or transmit the messages. A radio item must have the property simulation = "ItemRadio"; in its CfgWeapons config.
Groups:
Radio and Chat

Syntax

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

Examples

Example 1:
_soldierOne groupChat "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:
globalChat sideChat vehicleChat commandChat customChat systemChat groupRadio

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