Channel IDs: Difference between revisions
Category: Scripting Topics
Killzone Kid (talk | contribs) No edit summary |
Lou Montana (talk | contribs) (Add since v2.22) |
||
| Line 12: | Line 12: | ||
|- | |- | ||
| -1 || None || All players. || Is used when a marker is created with [[createMarker]] and the '''channelID''' parameter was not defined. Markers in "none" channel are visible in all other channels as well. | | -1 || None || All players. || Is used when a marker is created with [[createMarker]] and the '''channelID''' parameter was not defined. Markers in "none" channel are visible in all other channels as well. | ||
|- | |- | ||
| 0 || Global || All players. || | | 0 || Global || All players. || | ||
|- | |- | ||
| 1 || Side || Content is only visible to the [[side]] of the player who created it. || | | 1 || Side || Content is only visible to the [[side]] of the player who created it. || | ||
|- | |- | ||
| 2 || Command || | | 2 || Command || || | ||
|- | |- | ||
| 3 || Group || Content is only visible for the players in the group of the player who created it. || This channel cannot be disabled. It's the default fallback channel if all other channels are disabled. | | 3 || Group || Content is only visible for the players in the group of the player who created it. || This channel cannot be disabled. It's the default fallback channel if all other channels are disabled. | ||
|- | |- | ||
| 4 || Vehicle || Content is only visible to the vehicle's crew. || | | 4 || Vehicle || Content is only visible to the vehicle's crew. || | ||
|- | |- | ||
| 5 || Direct || Players in close proximity. || | | 5 || Direct || Players in close proximity. || | ||
|- | |- | ||
| 6..15 || Custom Channels || Content will only be available for players which have been assigned to this channel. See [[radioChannelAdd]]. || Custom channels can be created on the fly. See [[radioChannelCreate]]. | | 6..15<br>26..65 || Custom Channels || Content will only be available for players which have been assigned to this channel. See [[radioChannelAdd]]. || Custom channels can be created on the fly. See [[radioChannelCreate]]. | ||
{{Feature|warning|The '''custom channel ID''' returned by [[radioChannelCreate]] is going to be in a range from 1 | {{Feature|warning|2= | ||
: {{{!}} class | The '''custom channel ID''' returned by [[radioChannelCreate]] is going to be in a range from 1 to 50 (0 if failed). | ||
Internally, these numbers are converted to the '''channel IDs''' 6..15 and 26..65 (notice the additionaloffset) which are reserved for custom channels. | |||
: {{{!}} class="wikitable align-center" | |||
{{!}}- | {{!}}- | ||
! Channel ID | ! Channel ID | ||
{{!}} style | {{!}} style="width: 1.5em" {{!}} '''6''' | ||
{{!}} style | {{!}} style="width: 1.5em" {{!}} 7 | ||
{{!}} style | {{!}} style="width: 1.5em" {{!}} 8 | ||
{{!}} style | {{!}} style="width: 1.5em" {{!}} 9 | ||
{{!}} style | {{!}} style="width: 1.5em" {{!}} 10 | ||
{{!}} style | {{!}} style="width: 1.5em" {{!}} 11 | ||
{{!}} style | {{!}} style="width: 1.5em" {{!}} 12 | ||
{{!}} style | {{!}} style="width: 1.5em" {{!}} 13 | ||
{{!}} style | {{!}} style="width: 1.5em" {{!}} 14 | ||
{{!}} style | {{!}} style="width: 1.5em" {{!}} '''15''' | ||
{{!}}- | {{!}}- | ||
! Custom Channel ID | ! Custom Channel ID | ||
| Line 53: | Line 55: | ||
{{!}} '''10''' | {{!}} '''10''' | ||
{{!}}} <!--- close inner table ---> | {{!}}} <!--- close inner table ---> | ||
: {{{!}} class | : {{{!}} class="wikitable align-center" | ||
{{!}}+ since {{GVI|arma3|2.22}} | |||
{{!}}- | {{!}}- | ||
! Channel ID | ! Channel ID | ||
{{!}} style | {{!}} style="width: 1.5em" {{!}} '''26''' | ||
{{!}} style | {{!}} style="width: 1.5em" {{!}} 27 | ||
{{!}} style | {{!}} style="width: 1.5em" {{!}} 28 | ||
{{!}} style | {{!}} style="width: 1.5em" {{!}} 29 | ||
{{!}} style | {{!}} style="width: 1.5em" {{!}} 30 | ||
{{!}} style | {{!}} style="width: 1.5em" {{!}} 31 | ||
{{!}} style | {{!}} style="width: 1.5em" {{!}} 32 | ||
{{!}} style | {{!}} style="width: 1.5em" {{!}} 33 | ||
{{!}} style | {{!}} style="width: 1.5em" {{!}} 34 | ||
{{!}} style | {{!}} style="width: 1.5em" {{!}} 35 | ||
{{!}} style | {{!}} style="width: 1.5em" {{!}} 36 | ||
{{!}} style | {{!}} style="width: 1.5em" {{!}} 37 | ||
{{!}} style | {{!}} style="width: 1.5em" {{!}} 38 | ||
{{!}} style | {{!}} style="width: 1.5em" {{!}} 39 | ||
{{!}} style | {{!}} style="width: 1.5em" {{!}} 40 | ||
{{!}} style | {{!}} style="width: 1.5em" {{!}} 41 | ||
{{!}} style | {{!}} style="width: 1.5em" {{!}} 42 | ||
{{!}} style | {{!}} style="width: 1.5em" {{!}} 43 | ||
{{!}} style | {{!}} style="width: 1.5em" {{!}} 44 | ||
{{!}} style | {{!}} style="width: 1.5em" {{!}} '''45''' | ||
{{!}}- | {{!}}- | ||
! Custom Channel ID | ! Custom Channel ID | ||
| Line 99: | Line 102: | ||
{{!}} '''30''' | {{!}} '''30''' | ||
{{!}}} <!--- close inner table ---> | {{!}}} <!--- close inner table ---> | ||
: {{{!}} class | : {{{!}} class="wikitable align-center" | ||
{{!}}- | {{!}}- | ||
! Channel ID | ! Channel ID | ||
{{!}} style | {{!}} style="width: 1.5em" {{!}} '''46''' | ||
{{!}} style | {{!}} style="width: 1.5em" {{!}} 47 | ||
{{!}} style | {{!}} style="width: 1.5em" {{!}} 48 | ||
{{!}} style | {{!}} style="width: 1.5em" {{!}} 49 | ||
{{!}} style | {{!}} style="width: 1.5em" {{!}} 50 | ||
{{!}} style | {{!}} style="width: 1.5em" {{!}} 51 | ||
{{!}} style | {{!}} style="width: 1.5em" {{!}} 52 | ||
{{!}} style | {{!}} style="width: 1.5em" {{!}} 53 | ||
{{!}} style | {{!}} style="width: 1.5em" {{!}} 54 | ||
{{!}} style | {{!}} style="width: 1.5em" {{!}} 55 | ||
{{!}} style | {{!}} style="width: 1.5em" {{!}} 56 | ||
{{!}} style | {{!}} style="width: 1.5em" {{!}} 57 | ||
{{!}} style | {{!}} style="width: 1.5em" {{!}} 58 | ||
{{!}} style | {{!}} style="width: 1.5em" {{!}} 59 | ||
{{!}} style | {{!}} style="width: 1.5em" {{!}} 60 | ||
{{!}} style | {{!}} style="width: 1.5em" {{!}} 61 | ||
{{!}} style | {{!}} style="width: 1.5em" {{!}} 62 | ||
{{!}} style | {{!}} style="width: 1.5em" {{!}} 63 | ||
{{!}} style | {{!}} style="width: 1.5em" {{!}} 64 | ||
{{!}} style | {{!}} style="width: 1.5em" {{!}} '''65''' | ||
{{!}}- | {{!}}- | ||
! Custom Channel ID | ! Custom Channel ID | ||
Latest revision as of 18:35, 20 November 2025
In Arma 3, chat, radio, VON and markers all use the same channel ID system. However, channel IDs for custom channels behave a bit differently. This is explained in the table below.
Description
| Channel ID | Channel Name | Visible To | Additional Information |
|---|---|---|---|
| -1 | None | All players. | Is used when a marker is created with createMarker and the channelID parameter was not defined. Markers in "none" channel are visible in all other channels as well. |
| 0 | Global | All players. | |
| 1 | Side | Content is only visible to the side of the player who created it. | |
| 2 | Command | ||
| 3 | Group | Content is only visible for the players in the group of the player who created it. | This channel cannot be disabled. It's the default fallback channel if all other channels are disabled. |
| 4 | Vehicle | Content is only visible to the vehicle's crew. | |
| 5 | Direct | Players in close proximity. | |
| 6..15 26..65 |
Custom Channels | Content will only be available for players which have been assigned to this channel. See radioChannelAdd. | Custom channels can be created on the fly. See radioChannelCreate. |
| 16 | System | All players, dedicated and headless client. | System messages like "Player connecting" or scripted from systemChat. |
Colours
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";
Changing Channels
- Ingame Controls
- , and . cycle through the channels
- Scripting
- setCurrentChannel
Custom Channel Example
// Create custom channel
_customChannelID = radioChannelCreate [[0.96, 0.34, 0.13, 0.8], "Q-dance Radio", "%UNIT_NAME", [player]]; // _customChannelID is 1
// Switch current channel of the player to the newly created channel.
setCurrentChannel (_customChannelID + 5); // Note the channel ID used here. Even though the ID returned by radioChannelCreate is 1, we have to use 6 as channel ID - see table above.
// Let us use this channel for a message
player customChat [_customChannelID, "Hi, I am a custom chat message"]; // Since this command uses the customChannelID we have to use 1 (_customChannelID) here
