customChat: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (channel id) |
m (template:command argument fix) |
||
Line 16: | Line 16: | ||
| unit '''customChat''' [channel, message] |= Syntax | | unit '''customChat''' [channel, message] |= Syntax | ||
|p1= unit: [[Object]] |= | |p1= unit: [[Object]] |PARAMETER1= | ||
|p2= [channel, message]: [[Array]] |= | |p2= [channel, message]: [[Array]] |PARAMETER2= | ||
|p3= channel: [[Number]] - custom radio channel id returned by [[radioChannelCreate]] command|= | |p3= channel: [[Number]] - custom radio channel id returned by [[radioChannelCreate]] command|PARAMETER3= | ||
|p4= message: [[String]] |= | |p4= message: [[String]] |PARAMETER4= | ||
| [[Nothing]] |= | | [[Nothing]] |RETURNVALUE= | ||
|x1= <code>_unit [[customChat]] [1, "Hi, I am a custom chat message"];</code>|= | |x1= <code>_unit [[customChat]] [1, "Hi, I am a custom chat message"];</code>|EXAMPLE1= | ||
|x2= <code>[[driver]] [[vehicle]] [[player]] [[sideChat]] "sideChat"; | |x2= <code>[[driver]] [[vehicle]] [[player]] [[sideChat]] "sideChat"; | ||
Line 40: | Line 40: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[globalChat]], [[groupChat]], [[vehicleChat]], [[commandChat]], [[sideChat]], [[systemChat]], [[radioChannelCreate]], [[customRadio]] |= | | [[globalChat]], [[groupChat]], [[vehicleChat]], [[commandChat]], [[sideChat]], [[systemChat]], [[radioChannelCreate]], [[customRadio]] |SEEALSO= | ||
| |= | | |MPBEHAVIOUR= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
}} | }} |
Revision as of 10:30, 7 April 2019
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:
- Uncategorised
Syntax
- Syntax:
- unit customChat [channel, message]
- Parameters:
- unit: Object
- [channel, message]: Array
- channel: Number - custom radio 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