mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Merge pull request #3218 from SzwedzikPL/fix3202
Fix laser_selfdesignate does not measure the distance
This commit is contained in:
commit
727cb38be6
@ -16,4 +16,4 @@ if (!hasInterface) exitWith {};
|
||||
}] call EFUNC(common,addEventHandler);
|
||||
|
||||
// Register event for global updates
|
||||
[QGVAR(forceUpdate), {ACE_player call FUNC(onForceUpdate)}] call EFUNC(common,addEventHandler);
|
||||
[QGVAR(forceUpdate), {[ACE_player] call FUNC(onForceUpdate)}] call EFUNC(common,addEventHandler);
|
||||
|
@ -7,7 +7,7 @@ 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);
|
||||
private _turret = [_unit] call EFUNC(common,getTurretIndex);
|
||||
|
||||
[_vehicle, _turret, -1, false] call FUNC(keyDown);
|
||||
[_vehicle, _turret, -1, false, false] call FUNC(keyUp);
|
||||
[_vehicle, _turret] call FUNC(keyDown);
|
||||
[_vehicle, _turret] call FUNC(keyUp);
|
||||
|
Loading…
Reference in New Issue
Block a user