diff --git a/functions/CfgFunctions.hpp b/functions/CfgFunctions.hpp index b59b3de..4bd975c 100644 --- a/functions/CfgFunctions.hpp +++ b/functions/CfgFunctions.hpp @@ -45,10 +45,14 @@ class milsim }; class resupply { + class crateDefinitions {}; class createAmmoBox {}; + class createBox {}; + class createCSWBox {}; + class createLaunchersBox {}; + class createMedicalBox {}; class createMortarBox {}; class createWeaponsBox {}; - class createMedicalBox {}; } class ambience { diff --git a/functions/init/fn_initPlayerLocal.sqf b/functions/init/fn_initPlayerLocal.sqf index 3a1a2a3..5f25ff9 100644 --- a/functions/init/fn_initPlayerLocal.sqf +++ b/functions/init/fn_initPlayerLocal.sqf @@ -1,5 +1,8 @@ if ( !hasInterface ) exitWith {}; +// define milsim_resupply_crateDefinitions +call milsim_fnc_crateDefinitions; + ["InitializePlayer", [player, true]] call BIS_fnc_dynamicGroups; nil; \ No newline at end of file diff --git a/functions/init/fn_initServer.sqf b/functions/init/fn_initServer.sqf index 15784ef..220f8ec 100644 --- a/functions/init/fn_initServer.sqf +++ b/functions/init/fn_initServer.sqf @@ -1,5 +1,8 @@ if (!isServer) exitWith {}; +// define milsim_resupply_crateDefinitions +call milsim_fnc_crateDefinitions; + _fixedAssets = [ ["Ares", "USAF_A10", 0], ["Odyssey", "RHSGREF_A29B_HIDF", 0], @@ -50,6 +53,8 @@ missionNamespace setVariable ["milsim_var_rotaryAssets", _rotaryAssets]; publicVariable "milsim_var_fixedAssets"; publicVariable "milsim_var_rotaryAssets"; + + // Initializes the Dynamic Groups framework and groups ["Initialize", [true]] call BIS_fnc_dynamicGroups;