ACE3/addons/fcs/functions/fnc_onForceUpdate.sqf

14 lines
436 B
Plaintext
Raw Normal View History

#include "script_component.hpp"
2015-12-10 15:00:14 +00:00
params ["_unit"];
private _vehicle = vehicle _unit;
if !([_unit, _vehicle, []] call EFUNC(common,canInteractWith)) exitWith {false};
if !((!GVAR(enabled) && FUNC(canUseFCS)) || FUNC(canUseRangefinder)) exitWith {false};
2015-12-10 15:00:14 +00:00
private _turret = _unit call EFUNC(common,getTurretIndex);
[_vehicle, _turret, -1, false] call FUNC(keyDown);
[_vehicle, _turret, -1, false, false] call FUNC(keyUp);