mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
!hasHatch condition part 2
This commit is contained in:
parent
a1d72b81bf
commit
7d7aa5b67f
@ -20,8 +20,11 @@
|
||||
params ["_unit", "_visionMode"];
|
||||
|
||||
if (GVAR(disableNVGsWithSights) && {(hmd _unit) != ""}) then {
|
||||
(assignedVehicleRole _unit) params ["_role", "_turretPath"];
|
||||
if ((vehicle _unit == _unit) || {isTurnedOut _unit} || {_role == "cargo" && {!(isNil "_turretPath")}}) then {
|
||||
if ((vehicle _unit == _unit)
|
||||
|| {isTurnedOut _unit}
|
||||
|| {!([_unit] call EFUNC(common,hasHatch))
|
||||
&& {[_unit] call EFUNC(common,getTurretIndex) in ([vehicle _unit] call EFUNC(common,getTurretsFFV))}
|
||||
}) then {
|
||||
if ((cameraView == "GUNNER") && {_visionMode > 0}) then {
|
||||
_unit action ["NVGogglesOff", _unit];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user