POW Tweak and startgame crates registered for ace carry

This commit is contained in:
Christian 2017-12-02 15:36:46 +01:00
parent 546af0707a
commit 29dbc5521f
2 changed files with 9 additions and 4 deletions

View File

@ -22,11 +22,11 @@ if ((_unit isKindOf "Man") && (alive _unit) && (side group _unit == GRLIB_side_e
_unit removeItem "NVGoggles_INDEP";
_unit setUnitPos "UP";
sleep 1;
_unit disableAI "ANIM";
_unit disableAI "MOVE";
if (KP_liberation_ace) then {
[_unit, true] call ACE_captives_fnc_setSurrendered;
} else {
_unit disableAI "ANIM";
_unit disableAI "MOVE";
_unit playmove "AmovPercMstpSnonWnonDnon_AmovPercMstpSsurWnonDnon";
sleep 2;
_unit setCaptive true;
@ -36,8 +36,12 @@ if ((_unit isKindOf "Man") && (alive _unit) && (side group _unit == GRLIB_side_e
};
if (alive _unit) then {
_unit enableAI "ANIM";
_unit enableAI "MOVE";
if (KP_liberation_ace) then {
[_unit, false] call ACE_captives_fnc_setSurrendered;
} else {
_unit enableAI "ANIM";
_unit enableAI "MOVE";
};
sleep 1;
[_unit] remoteExec ["remote_call_prisonner", _unit];
};

View File

@ -64,6 +64,7 @@ if (count GRLIB_all_fobs == 0) then {
_crate setVariable ["KP_liberation_crate_value", 100, true];
[_crate, 500] remoteExec ["F_setMass",_crate];
[objNull, _crate] call BIS_fnc_curatorObjectEdited;
if(KP_liberation_ace) then {[_crate, true, [0, 1.5, 0], 0] remoteExec ["ace_dragging_fnc_setCarryable"];};
_crateArray pushBack _crate;
};
uiSleep 25;