customChat: Difference between revisions
Jump to navigation
Jump to search
m (command group) |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(32 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
| arma3 | | |game1= arma3 | ||
|version1= 0.50 | |||
| | |gr1= Radio and Chat | ||
| | |gr2= Custom Radio and Chat | ||
| | |arg= global | ||
| | |eff= local | ||
| | |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 <syntaxhighlight lang="cpp" inline>simulation = "ItemRadio";</syntaxhighlight> in its [[CfgWeapons_Config_Reference#simulation.3D.22Weapon.22|CfgWeapons config]].}} | ||
| unit [[customChat]] [ | |s1= unit [[customChat]] [customChannelID, message] | ||
|p1= unit: [[Object]] | |p1= unit: [[Object]] | ||
|p2= [channel | |p2= customChannelID: [[Number]] - [[Channel IDs|Custom channel ID]] returned by [[radioChannelCreate]] command | ||
|p3= | |p3= message: [[String]] | ||
| | |r1= [[Nothing]] | ||
|x1= <sqf>_unit customChat [1, "Hi, I am a custom chat message"];</sqf> | |||
|x1= < | |||
|x2= [[File:xChat.jpg|right]] | |x2= [[File:xChat.jpg|right]] | ||
<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> | |||
| [[globalChat]] | |seealso= [[globalChat]] [[groupChat]] [[vehicleChat]] [[commandChat]] [[sideChat]] [[systemChat]] [[radioChannelCreate]] [[customRadio]] | ||
}} | }} | ||
Latest revision as of 16:52, 25 July 2022
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
- See also:
- globalChat groupChat vehicleChat commandChat sideChat systemChat radioChannelCreate customRadio
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