2015-01-12 14:09:07 +00:00
|
|
|
/*
|
|
|
|
Author(s):
|
|
|
|
bux578
|
|
|
|
*/
|
|
|
|
|
2015-01-13 09:53:04 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
|
|
|
//0 spawn {
|
|
|
|
|
|
|
|
private ["_sides"];
|
|
|
|
|
|
|
|
//waitUntil {sleep 0.5; AGM_SwitchUnits_EnableSwitchUnits};
|
|
|
|
|
|
|
|
//_side = [west, east, independent, civilian] select AGM_SwitchUnits_SwitchUnitsAllowedForSide;
|
|
|
|
|
|
|
|
_sides = [];
|
|
|
|
|
|
|
|
if(GVAR(SwitchToWest)) then {_sides pushBack west};
|
|
|
|
if(GVAR(SwitchToEast)) then {_sides pushBack east};
|
|
|
|
if(GVAR(SwitchToIndependent)) then {_sides pushBack independent};
|
|
|
|
if(GVAR(SwitchToCivilian)) then {_sides pushBack civilian};
|
|
|
|
|
|
|
|
if (player getVariable ["ACE_CanSwitchUnits", false]) then {
|
|
|
|
[player, _sides] call FUNC(initPlayer);
|
2015-01-12 14:09:07 +00:00
|
|
|
};
|
2015-01-13 09:53:04 +00:00
|
|
|
|
|
|
|
//};
|