customChat: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|seealso= *\[\[([^ ]+)\]\], \[\[([^ ]+)\]\]" to "|seealso= $1 $2")
m (Text replacement - "\|seealso= *\[\[([^ ]+)\]\], \[\[([^ ]+)\]\]" to "|seealso= $1 ")
Line 38: Line 38:
<br><!-- needed for the text to display properly with the float…??? -->
<br><!-- needed for the text to display properly with the float…??? -->


|seealso= [[globalChat]] [[groupChat]] [[vehicleChat]] [[commandChat]] [[sideChat]], [[systemChat]], [[radioChannelCreate]], [[customRadio]]
|seealso= [[globalChat]] [[groupChat]] [[vehicleChat]] [[commandChat]] [[sideChat]] [[systemChat]], [[radioChannelCreate]], [[customRadio]]
}}
}}

Revision as of 16:47, 20 January 2022

Hover & click on the images for description

Description

Description:
Sends the chat message to the custom radio channel. The radio channel needs to be created on the server before hand, with radioChannelCreate command.
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 ChatCustom Radio and Chat

Syntax

Syntax:
unit customChat [customChannelID, message]
Parameters:
unit: Object
customChannelID: Number - Custom channel ID returned by radioChannelCreate command
message: String
Return Value:
Nothing

Examples

Example 1:
_unit customChat [1, "Hi, I am a custom chat message"];
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 groupChat vehicleChat commandChat sideChat systemChatradioChannelCreatecustomRadio

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