Skip to content

Commit

Permalink
Update fn_createStaticWeapons.sqf
Browse files Browse the repository at this point in the history
  • Loading branch information
PiG13BR authored Nov 24, 2024
1 parent 69e1d72 commit 3452709
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Missionframework/functions/fn_createStaticWeapons.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ private _allStaticWeapons = [];
private _sectorpos = markerPos _sector;

// Find garrisons objects for static weapons in the activated sector
private _allGarrisons = (nearestObjects [_sectorpos, PIG_staticConfigs_classes, (_radius * 1.5)]) select {alive _x};
private _allGarrisons = (nearestObjects [_sectorpos, KPLIB_staticConfigs_classes, (_radius * 1.5)]) select {alive _x};

private _blacklistGarrisons = (PIG_GarrisonsBlacklist_HashMap get _sector);
private _blacklistGarrisons = (KPLIB_GarrisonsBlacklist_HashMap get _sector);
if (!isNil "_blacklistGarrisons") then {
{
_pos = _x;
Expand Down Expand Up @@ -80,14 +80,14 @@ if (count _allGarrisons > 0) then {
}
};
// Create the static weapon and it's crew
_weapon = [(_garrison modelToWorld _relPos), _staticClass, _relDir] call PIG_fnc_spawnStaticWeapon;
_weapon = [(_garrison modelToWorld _relPos), _staticClass, _relDir] call KPLIB_fnc_spawnStaticWeapon;
// Group the static weapons to share information easily.
(crew _weapon) joinSilent _staticGroup;
_allStaticWeapons pushBack _weapon;
};
};
}
}forEach PIG_staticsConfigs;
}forEach KPLIB_staticsConfigs;
}forEach _allGarrisons;
};

Expand Down

0 comments on commit 3452709

Please sign in to comment.