ACE3/addons/fcs/functions/fnc_onForceUpdate.sqf
Phyma ffaa195fe5 Conform function headers to coding guidelines (#5255)
* Fixed headers to work with silentspike python script

* Fixed rest of the files

* Fixed ace-team
2017-06-08 15:31:51 +02:00

30 lines
549 B
Plaintext

/*
* Author: ACE-Team
*
*
* Arguments:
* Nothing
*
* Return Value:
* None
*
* Example:
* call ace_fcs_fnc_onForceUpdate
*
* Public: No
*/
#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);