ACE3/addons/fcs/functions/fnc_onForceUpdate.sqf
2016-01-25 09:49:47 +01:00

14 lines
409 B
Plaintext

#include "script_component.hpp"
params ["_unit"];
private _vehicle = vehicle _unit;
if !([_unit, _vehicle, []] call EFUNC(common,canInteractWith)) exitWith {false};
if !((!GVAR(enabled) && FUNC(canUseFCS)) || FUNC(canUseRangefinder)) exitWith {false};
private _turret = [_unit] call EFUNC(common,getTurretIndex);
[_vehicle, _turret] call FUNC(keyDown);
[_vehicle, _turret] call FUNC(keyUp);