ACE3/TO_MERGE/agm/Movement/functions/fn_handleClimb.sqf

14 lines
312 B
Plaintext
Raw Normal View History

// by commy2
private ["_unit", "_anim", "_pos"];
_unit = _this select 0;
_anim = _this select 1;
_pos = _unit modelToWorld (_unit selectionPosition "camera");
[_unit, "AmovPknlMstpSnonWnonDnon", 2] call AGM_Core_fnc_doAnimation;
_pos = _pos vectorDiff (_unit selectionPosition "camera");
_unit setPos _pos;