mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Replace forEach with Count
Use count where you do not need _forEachIndex variable, it's quicker than forEach.
This commit is contained in:
@@ -12,9 +12,9 @@ _isOk = false;
|
||||
if(!_isOk) then {
|
||||
_isOk = _cTarget isKindOf _x;
|
||||
};
|
||||
} forEach ["LandVehicle","Air", "Ship"];
|
||||
} count ["LandVehicle","Air", "Ship"];
|
||||
|
||||
if((locked _cTarget) and _isOk and (((vehicle player) distance _cTarget) < 12)) then {
|
||||
if((locked _cTarget) && _isOk && (((vehicle player) distance _cTarget) < 12)) then {
|
||||
cutText [(localize "str_epoch_player_7") , "PLAIN DOWN"];
|
||||
_display closeDisplay 1;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user