mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
fix switchUntis
forgot that little bugger
This commit is contained in:
parent
073805148b
commit
49f01a0fac
@ -3,21 +3,25 @@
|
||||
bux578
|
||||
*/
|
||||
|
||||
0 spawn {
|
||||
private ["_side"];
|
||||
#include "script_component.hpp"
|
||||
|
||||
waitUntil {sleep 0.5; AGM_SwitchUnits_EnableSwitchUnits};
|
||||
//0 spawn {
|
||||
|
||||
//_side = [west, east, independent, civilian] select AGM_SwitchUnits_SwitchUnitsAllowedForSide;
|
||||
private ["_sides"];
|
||||
|
||||
_sides = [];
|
||||
//waitUntil {sleep 0.5; AGM_SwitchUnits_EnableSwitchUnits};
|
||||
|
||||
if(AGM_SwitchUnits_SwitchToWest) then {_sides pushBack west};
|
||||
if(AGM_SwitchUnits_SwitchToEast) then {_sides pushBack east};
|
||||
if(AGM_SwitchUnits_SwitchToIndependent) then {_sides pushBack independent};
|
||||
if(AGM_SwitchUnits_SwitchToCivilian) then {_sides pushBack civilian};
|
||||
//_side = [west, east, independent, civilian] select AGM_SwitchUnits_SwitchUnitsAllowedForSide;
|
||||
|
||||
if (player getVariable ["AGM_CanSwitchUnits", false]) then {
|
||||
[player, _sides] call AGM_SwitchUnits_fnc_initPlayer;
|
||||
};
|
||||
_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);
|
||||
};
|
||||
|
||||
//};
|
||||
|
Loading…
Reference in New Issue
Block a user