mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-24 09:00:50 +03:00
Set third parameter after findSafePos
All other scripts using findSafePos either set the third parameter or
use a getPosATL/etc. instead before the position is saved to database.
Also partially reverted d6e78b2 since it is not needed.
This commit is contained in:
@@ -57,6 +57,7 @@ if (count AllowedVehiclesList == 0) then {
|
||||
};
|
||||
// only proceed if two params otherwise BIS_fnc_findSafePos failed and may spawn in air
|
||||
if ((count _position) == 2) then {
|
||||
_position set [2,0];
|
||||
_dir = round(random 180);
|
||||
_istoomany = _position nearObjects ["AllVehicles",50];
|
||||
if ((count _istoomany) > 0) exitWith {};
|
||||
|
||||
Reference in New Issue
Block a user