wip, fbcb2_assets, init, util

This commit is contained in:
2024-02-04 22:18:06 -08:00
parent 4cfa159ee9
commit f450f4611b
32 changed files with 2066 additions and 100 deletions

View File

@@ -0,0 +1,12 @@
#include "..\script_component.hpp"
params [["_object", objNull, [objNull]]];
if (isNull _object) exitWith {objNull};
private _bases = missionNamespace getVariable ["milsim_baseObjects", []];
if (count _bases == 0) exitWith {objNull};
// get nearest base (Module_Respawn_F)
private _closestBase = [_bases, _object] call BIS_fnc_nearestPosition;
if (isNull _closestBase) exitWith {objNull};
_closestBase;