From 08382f699c80caf94442a94877c05a3973e13445 Mon Sep 17 00:00:00 2001 From: 3Mydlo3 Date: Thu, 7 Mar 2024 20:46:51 +0100 Subject: [PATCH] Find empty position for killers start (#74) To avoid teleports to closed buildings --- addons/killers/functions/fnc_initStartPositions.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/killers/functions/fnc_initStartPositions.sqf b/addons/killers/functions/fnc_initStartPositions.sqf index a1279e00..7c5536be 100644 --- a/addons/killers/functions/fnc_initStartPositions.sqf +++ b/addons/killers/functions/fnc_initStartPositions.sqf @@ -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);