mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Don't allow adjusting range if only rangefinder is available
This commit is contained in:
parent
25645c2ae9
commit
b74175ec9e
@ -51,7 +51,7 @@
|
|||||||
_exceptions = [];
|
_exceptions = [];
|
||||||
if !(_exceptions call EGVAR(common,canInteract)) exitWith {false};
|
if !(_exceptions call EGVAR(common,canInteract)) exitWith {false};
|
||||||
// Conditions: specific
|
// Conditions: specific
|
||||||
if !(call FUNC(canUseRangefinder) || FUNC(canUseFCS)) exitWith {false};
|
if !(FUNC(canUseFCS)) exitWith {false};
|
||||||
|
|
||||||
// Statement
|
// Statement
|
||||||
[vehicle ACE_player, [ACE_player] call EFUNC(common,getTurretIndex), 50] call FUNC(adjustRange);
|
[vehicle ACE_player, [ACE_player] call EFUNC(common,getTurretIndex), 50] call FUNC(adjustRange);
|
||||||
@ -69,7 +69,7 @@
|
|||||||
_exceptions = [];
|
_exceptions = [];
|
||||||
if !(_exceptions call EGVAR(common,canInteract)) exitWith {false};
|
if !(_exceptions call EGVAR(common,canInteract)) exitWith {false};
|
||||||
// Conditions: specific
|
// Conditions: specific
|
||||||
if !(call FUNC(canUseRangefinder) || FUNC(canUseFCS)) exitWith {false};
|
if !(FUNC(canUseFCS)) exitWith {false};
|
||||||
|
|
||||||
// Statement
|
// Statement
|
||||||
[vehicle ACE_player, [ACE_player] call EFUNC(common,getTurretIndex), -50] call FUNC(adjustRange);
|
[vehicle ACE_player, [ACE_player] call EFUNC(common,getTurretIndex), -50] call FUNC(adjustRange);
|
||||||
|
Loading…
Reference in New Issue
Block a user