mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
17 lines
387 B
Plaintext
17 lines
387 B
Plaintext
//fnc_m137_adjustOpticElevation.sqf
|
|
#include "script_component.hpp"
|
|
PARAMS_1(_dir);
|
|
|
|
_gun = GVAR(m137Gun);
|
|
|
|
_size = 1;
|
|
if(GVAR(m137_shift)) then {
|
|
if(GVAR(m137_ctrl)) then {
|
|
_size = 100;
|
|
} else {
|
|
_size = 10;
|
|
};
|
|
};
|
|
_count = _gun animationPhase "M137OpticElevate";
|
|
_increment = ((_count+(_size*_dir)) min 300) max -300;
|
|
_gun animate ["M137OpticElevate", _increment]; |