// it_start = 0;
// m2 animate ["MainTurret", -1600];
// it_start = it_start + 1;
// m2 animate ["deflection_knob", 92];

// test_cam cameraEffect ["terminate", "back"];
// cutrsc ["default", "PLAIN DOWN"];
// camDestroy test_cam;

// _pos = m2 modelToWorld [0,-2,2];
// test_cam = "camera" camCreate _pos;
// test_cam cameraEffect ["internal", "back"];
// test_cam camSetTarget (m2 modelToWorld (m2 selectionPosition "elevation_rotation_axis"));
// test_cam camSetFov 0.03;
// test_cam camCommit 0.1;


// player sideChat format["a: %1", m2 animationPhase "elevation_optic"];
/*
[] spawn {
	_start = 0;
	waitUntil {
		_start = _start + 1;
		m2 animate ["elevation_knob", _start];
		sleep 2;
	};
};
*/
#include "\x\ace\addons\sys_arty_aimingpoints\script_component.hpp"
_wdir = m119 weaponDirection "ace_arty_m119";
diag_log text format["e: %1", _wdir];
player sideChat format["d: %1", ((_wdir select 0) atan2 (_wdir select 1))*17.7777777777778];

_p1 = m2 modelToWorld (m2 selectionPosition "gunEnd");
_p2 = m2 modelToWorld (m2 selectionPosition "gunBegin");
_vecto = [_p1,_p2] call BIS_fnc_vectorFromXtoY;
diag_log text format["w: %1", _vecto];
player sideChat format["v: %1", ((_vecto select 0) atan2 (_vecto select 1))*17.7777777777778];
player sideChat format["ap: %1", m2 animationPhase "upper_motion"];
// [GVAR(aimingCircleMainViews), 0] call FUNC(aimingCircleSetView);