Skip to content

Commit

Permalink
fix auto static spawn generation for unsupported maps
Browse files Browse the repository at this point in the history
  • Loading branch information
SnarkIndustries committed Sep 10, 2014
1 parent 4a915e2 commit ec56224
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion DZAI/scripts/setup_autoStaticSpawns.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if (DZAI_debugLevel > 0) then {diag_log format ["DZAI Debug: DZAI is generating

if ((_placeType != "NameLocal") && {!(surfaceIsWater _placePos)}) then {
private ["_nearbldgs"];
_nearbldgs = _triggerPos nearObjects ["HouseBase",250];
_nearbldgs = _placePos nearObjects ["HouseBase",250];
if ((count _nearbldgs) > 19) then {
_ignoredObj = missionNamespace getVariable ["dayz_allowedObjects",[]];
_spawnPositions = [];
Expand All @@ -34,6 +34,9 @@ if (DZAI_debugLevel > 0) then {diag_log format ["DZAI Debug: DZAI is generating
_trigger setTriggerActivation ["ANY", "PRESENT", true];
_trigger setTriggerTimeout [10, 15, 20, true];
_trigger setTriggerText _placeName;
_aiCount = [1,1];
_equipType = 1;
_patrolRad = 125;
switch (_placeType) do {
case "NameCityCapital":
{
Expand Down

0 comments on commit ec56224

Please sign in to comment.