Shorten some isKindOf checks

This commit is contained in:
ebaydayz
2017-01-28 21:04:26 -05:00
parent 9270050bc6
commit 611fd73bbd
3 changed files with 5 additions and 5 deletions

View File

@@ -21,7 +21,7 @@ if (!DZE_NoVehicleExplosions) then {
};
};
} else {
_isVeh = (_v iskindof "helicopter" || _v iskindof "plane" || _v iskindof "tank" || _v iskindof "car" || _v iskindof "ship");
_isVeh = ({_v isKindOf _x} count ["Helicopter","Plane","Tank","Car","Ship"] > 0);
if (_isVeh && {player in (crew _v)}) then {
["Eject", _v] call BIS_Effects_globalEvent;
};