mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 20:13:13 +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:
@@ -23,7 +23,7 @@ _lights = ["a_fuelstation_sign.p3d","lampa_ind_zebr.p3d","lampa_ind.p3d","lampa_
|
||||
};
|
||||
};
|
||||
};
|
||||
} foreach nearestObjects [([_target] call FNC_getPos), [], _rng];
|
||||
} count nearestObjects [([_target] call FNC_getPos), [], _rng];
|
||||
|
||||
};
|
||||
|
||||
@@ -101,7 +101,7 @@ _nrTLs= _twrPos nearObjects ["#lightpoint",20];
|
||||
deleteVehicle _x;
|
||||
};
|
||||
sleep .2;
|
||||
}forEach _nrTLs;
|
||||
}count _nrTLs;
|
||||
|
||||
}else{
|
||||
//axeDiagLog = format["FN:TL NEW LPS:%1",_twr];
|
||||
|
||||
Reference in New Issue
Block a user