mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-20 10:26:28 +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:
@@ -16,7 +16,7 @@ if( (!isNull cursorTarget) && (player distance cursorTarget < 5) && (vehicle pla
|
||||
};
|
||||
};
|
||||
|
||||
/*Player doesn't have a cursor target, or its too far away, or they are in a vehicle.
|
||||
/*Player doesn't have a cursor target, || its too far away, || they are in a vehicle.
|
||||
else{
|
||||
if ( (vehicle player != player) && (vehicle player isKindOf "AllVehicles") ) then {
|
||||
//Player is in a vehicle, placeholder for vehicle trunk sounds(if added)
|
||||
|
||||
Reference in New Issue
Block a user