ACE3/TO_MERGE/agm/Logistics/functions/StaticWeapons/fn_rotate.sqf

16 lines
359 B
Plaintext

// by commy2
player playActionNow "PutDown";
_this spawn {
_vehicle = _this select 0;
_isClockwise = _this select 1;
sleep 1;
_vehicle setDir getDir _vehicle + ([-22.5, 22.5] select _isClockwise);
_vehicle setPosASL getPosASL _vehicle;
[_vehicle, "{_this setVectorUp (surfaceNormal getPosASL _this)}", _vehicle] call AGM_Core_fnc_execRemoteFnc;
};