Page MenuHomeFeedback Tracker

Script command request: radioChannelInfo
New, NormalPublic

Description

Command: radioChannelInfo
Description: Returns custom channel information.
Syntax: radioChannelInfo index
Parameters: index: Number - custom channel index returned by radioChannelCreate command
Return Value: Array - [color, label, callSign, units, sentenceType] (as per radioChannelCreate)
*units would return the units who are currently in the channel
Example:

private _channelInfo = radioChannelInfo 6;
// _channelInfo: [[0.96, 0.34, 0.13, 0.8], "Q-dance Radio", "%UNIT_NAME", [player1, player2], false]

Details

Severity
Feature
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10
Category
Feature Request
Additional Information

Context:
There are currently no commands to get custom channel info after the channel has been created. The way around this is to use a function to save the data when making the channel, but this is inconvenient in the case of a public mod because it would only work with missions that have implemented support for the mod.

This command would make working with custom channel info much easier.

Event Timeline

_connor created this task.May 11 2020, 4:19 AM
dedmen added a project: Restricted Project.Jun 7 2020, 3:02 PM
dedmen set Ref Ticket to AIII-53005.
dedmen moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.
dedmen claimed this task.Thu, Jul 30, 2:47 PM
dedmen moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.

_index = radioChannelCreate [[0.96, 0.34, 0.13, 0.8], "Q-dance Radio", "%UNIT_NAME", [u1, u2]];
radioChannelInfo _index;
->
[[0.960784,0.341176,0.129412,0.8],"Q-dance Radio","%UNIT_NAME",[u1,u2],false]

dedmen moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.Thu, Aug 6, 12:00 PM