2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2017-06-08 13:31:51 +00:00
|
|
|
/*
|
|
|
|
* Author: ACE-Team
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* Nothing
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* call ace_fcs_fnc_onForceUpdate
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
2016-05-30 16:37:03 +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};
|
|
|
|
|
|
|
|
private _turret = [_unit] call EFUNC(common,getTurretIndex);
|
|
|
|
|
|
|
|
[_vehicle, _turret] call FUNC(keyDown);
|
|
|
|
[_vehicle, _turret] call FUNC(keyUp);
|