customChat: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) 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= ") |
(Add warning about itemRadio requirement) |
||
Line 13: | Line 13: | ||
|descr= Sends the chat message to the custom radio channel. The radio channel needs to be created on the server before hand, with [[radioChannelCreate]] command. | |descr= Sends the chat message to the custom radio channel. The radio channel needs to be created on the server before hand, with [[radioChannelCreate]] command. | ||
{{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 {{ic|simulation [[=]] "ItemRadio";}} in its [[CfgWeapons_Config_Reference#simulation.3D.22Weapon.22|CfgWeapons config]].}} | |||
|s1= unit [[customChat]] [customChannelID, message] | |s1= unit [[customChat]] [customChannelID, message] |
Revision as of 10:06, 25 October 2021
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.
- 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:
-
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
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