mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
14 lines
436 B
Plaintext
14 lines
436 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, -1, false] call FUNC(keyDown);
|
|
[_vehicle, _turret, -1, false, false] call FUNC(keyUp);
|