mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
13 lines
322 B
Plaintext
13 lines
322 B
Plaintext
//fnc_adjustTraverse.sqf
|
|
#include "script_component.hpp"
|
|
|
|
private["_gun", "_phase", "_newPhase", "_m"];
|
|
|
|
PARAMS_1(_dir);
|
|
|
|
_gun = GVAR(activeGun);
|
|
_phase = (_gun animationPhase "MainTurretTraverse");
|
|
_m = 0.25;
|
|
_newPhase = _phase+(_dir*_m) min 200 max -200;
|
|
_gun animate ["MainTurretTraverse", _newPhase];
|
|
false |