ACE3/TO_MERGE/ace/arty_mortars/fnc_adjustElevation.sqf

13 lines
294 B
Plaintext
Raw Normal View History

//fnc_adjustElevation.sqf
#include "script_component.hpp"
private["_gun", "_phase", "_newPhase"];
PARAMS_1(_dir);
_gun = GVAR(activeGun);
_phase = round(_gun animationPhase "MainGun");
_newPhase = round(_phase + _dir) min 1511 max 800;
_gun animate ["MainGun", _newPhase];
false