mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
12 lines
295 B
Plaintext
12 lines
295 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 1244) max -100;
|
||
|
_gun animate ["MainGun", _newPhase];
|
||
|
false
|