ACE3/addons/markers/functions/fnc_onLBSelChangedChannel.sqf

22 lines
392 B
Plaintext
Raw Normal View History

2015-12-10 14:32:31 +00:00
/*
* Author: commy2
* When the channel list box is changed.
*
* Arguments:
* 0: Channel ListBox (idc 103) <CONTROL>
* 1: Selected Index <NUMBER>
*
* Return Value:
* None
*
* Public: No
*/
#include "script_component.hpp"
params ["_ctrl", "_index"];
TRACE_2("params",_ctrl,_index);
private _channelName = _ctrl lbText _index;
setCurrentChannel (CHANNEL_NAMES find _channelName);