mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
15 lines
345 B
Plaintext
15 lines
345 B
Plaintext
// by commy2
|
|
#include "script_component.hpp"
|
|
|
|
private ["_unit", "_anim", "_pos"];
|
|
|
|
_unit = _this select 0;
|
|
_anim = _this select 1;
|
|
|
|
_pos = _unit modelToWorld (_unit selectionPosition "camera");
|
|
[_unit, "AmovPknlMstpSnonWnonDnon", 2] call EFUNC(common,doAnimation);
|
|
|
|
_pos = _pos vectorDiff (_unit selectionPosition "camera");
|
|
|
|
_unit setPos _pos;
|