Page MenuHomeFeedback Tracker

setCurrentChannel does not work with the custom radio channel 10
New, WishlistPublic

Description

setCurrentChannel works with every channel created with radioChannelCreate except of the 10th and last one.

Details

Legacy ID
4206971004
Severity
None
Resolution
Open
Reproducibility
Always
Category
Scripting
Steps To Reproduce
  1. Enter a MP game with debug console enabled.
  2. Create ten custom radio channels using this:

for "_a" from 1 to 10 do {

_index = radioChannelCreate [[1, 0, 0, 1], format ["Custom Channel %1", _a], "%UNIT_NAME", [player]];

};

  1. Try to select any channel using setCurrentChannel N, where N is any number from 0 to 15 (6 default channels + 10 custom ones).

The command fails for 15 (Custom Channel 10) and returns false as if the channel does not exist, despite working with every other custom channel.
"Custom Channel 10" can still be selected using "." or ",", which leads to this scenario: http://i.imgur.com/c5ePolh.jpg

Additional Information

If trying to reproduce this on a dedicated server, then keep in mind that radioChannelCreate has to be executed on the server.

Event Timeline

commy2 edited Steps To Reproduce. (Show Details)Dec 9 2015, 6:25 PM
commy2 edited Additional Information. (Show Details)
commy2 set Category to Scripting.
commy2 set Reproducibility to Always.
commy2 set Severity to None.
commy2 set Resolution to Open.
commy2 set Legacy ID to 4206971004.May 8 2016, 1:17 PM