mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
14 lines
312 B
Plaintext
14 lines
312 B
Plaintext
// 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;
|