Skip to content

Commit

Permalink
Find empty position for killers start (#74)
Browse files Browse the repository at this point in the history
To avoid teleports to closed buildings
  • Loading branch information
3Mydlo3 authored Mar 7, 2024
1 parent c17b3b2 commit 08382f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/killers/functions/fnc_initStartPositions.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ private _positions = true call CBA_fnc_createNamespace;

// Generate positions
while {_i > 0} do {
private _pos = [nil, false, false, true] call EFUNC(common,getRandomPos);
private _pos = [KILLER_UNIT_CLASS, false, false, true] call EFUNC(common,getRandomPos);
//diag_log format ["[AFSK] [KILLERS] [initStartPositions] Pos: %1", _pos];
if (!(_pos isEqualTo [])) then {
private _nearestCity = [_pos, 1500] call EFUNC(common,getNearestCityLocation);
Expand Down

0 comments on commit 08382f6

Please sign in to comment.