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