big refactor to isolate functionality. adds milsim_fnc_log.

This commit is contained in:
2024-01-30 15:05:02 -08:00
parent f52011cbc4
commit 9ec51a5e19
20 changed files with 714 additions and 375 deletions

View File

@@ -0,0 +1,10 @@
params [["_player", objNull, [objNull]]];
if (isNull _player) exitWith {objNull};
private _bases = missionNamespace getVariable ["milsim_respawn_bases", []];
if (count _bases == 0) exitWith {objNull};
// get nearest base (Module_Respawn_F)
private _closestBase = [_bases, _player] call BIS_fnc_nearestPosition;
if (isNull _closestBase) exitWith {objNull};
_closestBase;