From cbb620ba98d3cff1d66a631654292fdf2a2a8fab Mon Sep 17 00:00:00 2001 From: ViperMaul Date: Sat, 13 Jun 2015 07:24:50 -0700 Subject: [PATCH] Change setPos to setPosASL to support roof tops and multi-level objects and faster code. #1575 and #1577 --- addons/common/functions/fnc_unloadPersonLocal.sqf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/common/functions/fnc_unloadPersonLocal.sqf b/addons/common/functions/fnc_unloadPersonLocal.sqf index 5ebe35a439..a710fc1831 100644 --- a/addons/common/functions/fnc_unloadPersonLocal.sqf +++ b/addons/common/functions/fnc_unloadPersonLocal.sqf @@ -20,9 +20,9 @@ PARAMS_2(_unit,_vehicle); if (driver _vehicle == _unit) exitwith {false;}; TRACE_1("Vehicle Check", driver _vehicle == _unit); -if !(speed _vehicle <1 && (((getpos _vehicle) select 2) < 2)) exitwith {false;}; +if !(speed _vehicle <1 && (((getPosASL _vehicle) select 2) < 2)) exitwith {false;}; -_emptyPos = ((getPos _vehicle) findEmptyPosition [0, 10, typeof _unit]); +_emptyPos = ((getPosASL _vehicle) findEmptyPosition [0, 10, typeof _unit]); if (count _emptyPos == 0) exitwith {false}; unassignVehicle _unit; @@ -32,7 +32,7 @@ _unit action ["Eject", vehicle _unit]; [ { private "_anim"; PARAMS_2(_unit,_emptyPos); - _unit setPos _emptyPos; + _unit setPosASL _emptyPos; if (!([_unit] call FUNC(isAwake))) then { TRACE_1("Check if isAwake", [_unit] call FUNC(isAwake)); if (driver _unit == _unit) then {