groupChat: 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 tomfoolery)
 
(12 intermediate revisions by 2 users not shown)
Line 28: Line 28:
|gr1= Radio and Chat
|gr1= Radio and Chat


|descr= 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]])
|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]]).


|s1= unitName [[groupChat]] chatText
{{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]].}}


|p1= unitName: [[Object]] - unit transmitting message
|s1= unit [[groupChat]] chatText
 
|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 [[groupChat]] "Show this text";</code>
|x1= <sqf>_soldierOne groupChat "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= [[globalChat]], [[sideChat]], [[vehicleChat]], [[commandChat]], [[customChat]], [[systemChat]], [[groupRadio]]
|seealso= [[globalChat]] [[sideChat]] [[vehicleChat]] [[commandChat]] [[customChat]] [[systemChat]] [[groupRadio]]
}}
}}

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