Page MenuHomeFeedback Tracker

Script command request: radioChannelInfo
Closed, ResolvedPublic

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.Jul 30 2020, 2:47 PM
dedmen moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.
dedmen added a comment.EditedJul 30 2020, 3:39 PM

_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, true]

dedmen moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.Aug 6 2020, 12:00 PM
dedmen changed the task status from New to Feedback.Aug 16 2020, 5:53 PM

next dev-branch whenever that will be.

Appears to work perfectly. Thanks :)

dedmen closed this task as Resolved.May 19 2021, 2:18 PM