ACE3/addons/fcs/functions/fnc_onForceUpdate.sqf

14 lines
409 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};
2016-01-25 08:49:47 +00:00
private _turret = [_unit] call EFUNC(common,getTurretIndex);
2015-12-10 15:00:14 +00:00
2016-01-25 08:49:47 +00:00
[_vehicle, _turret] call FUNC(keyDown);
[_vehicle, _turret] call FUNC(keyUp);