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:
@@ -12,7 +12,7 @@ _handle setFSMVariable ["_watchDog",_watchDog];
|
||||
_warn = {
|
||||
private ["_watchDog","_dog","_nearby","_senseSkill","_handle"];
|
||||
_handle = _this select 0;
|
||||
while {_watchDog and alive _dog} do {
|
||||
while {_watchDog && alive _dog} do {
|
||||
_watchDog = _handle getFSMVariable "_watchDog";
|
||||
_senseSkill = _handle getFSMVariable "_senseSkill";
|
||||
if (_watchDog) then {
|
||||
|
||||
Reference in New Issue
Block a user