2015-02-10 17:40:06 +00:00
|
|
|
/*
|
|
|
|
* Author: bux578
|
|
|
|
* Initializes the SwitchUnits pbo.
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-06-02 17:06:41 +00:00
|
|
|
|
2015-02-10 17:57:23 +00:00
|
|
|
if (missionNamespace getVariable [QGVAR(EnableSwitchUnits), false]) then {
|
|
|
|
[player] call FUNC(startSwitchUnits);
|
|
|
|
} else {
|
2016-05-24 13:13:11 +00:00
|
|
|
["ace_settingChanged", {
|
2015-02-10 17:57:23 +00:00
|
|
|
PARAMS_2(_name,_value);
|
|
|
|
if ((_name == QGVAR(EnableSwitchUnits)) && {_value}) then {
|
|
|
|
[player] call FUNC(startSwitchUnits);
|
2015-02-10 17:40:06 +00:00
|
|
|
};
|
2016-05-22 15:29:05 +00:00
|
|
|
}] call CBA_fnc_addEventHandler;
|
2015-02-10 17:40:06 +00:00
|
|
|
};
|