Skip to content

Commit

Permalink
fix counter variable
Browse files Browse the repository at this point in the history
  • Loading branch information
SnarkIndustries committed Jan 20, 2015
1 parent 3dc3897 commit 8985ffb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions DZAI/spawn_functions/spawnBandits_random.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ _triggerPos = getPosASL _trigger;
while {_checkArea && {_nearAttempts < 4}} do {
_spawnPos = [_triggerPos,(_baseDist + (random _extraDist)),(random 360),0] call SHK_pos;
_checkArea = ({isPlayer _x} count (_spawnPos nearEntities [["CAManBase","Land"], 175]) > 0);
_nearAttempts = _nearAttempts + 1;
};

if (_nearAttempts > 3) exitWith {_nul = _trigger call DZAI_abortRandSpawn};
Expand Down

0 comments on commit 8985ffb

Please sign in to comment.