28 lines
832 B
Plaintext
28 lines
832 B
Plaintext
if (!isServer) exitWith {};
|
|
|
|
// define milsim_resupply_crateDefinitions
|
|
call milsim_fnc_crateDefinitions;
|
|
|
|
milsim_baseObjects = allMissionObjects "ModuleRespawnPosition_F";
|
|
publicVariable "milsim_baseObjects";
|
|
|
|
// init asset stores at bases
|
|
[true] call milsim_fbcb2_assets_fnc_updateAssetsByBase;
|
|
// run update every 5 minutes
|
|
[{[false] call milsim_fbcb2_assets_fnc_updateAssetsByBase;}, 60*5] call CBA_fnc_addPerFrameHandler;
|
|
|
|
// Initializes the Dynamic Groups framework and groups
|
|
["Initialize", [true]] call BIS_fnc_dynamicGroups;
|
|
|
|
["milsim_logText", {
|
|
params [["_strArray", [""], [[]]]];
|
|
{
|
|
diag_log text _x;
|
|
} forEach _strArray;
|
|
}] call CBA_fnc_addEventHandler;
|
|
|
|
missionNamespace setVariable ["milsim_complete", true];
|
|
diag_log text "[MILSIM] (initServer) milsim_complete: version 2.3";
|
|
|
|
publicVariable "milsim_complete";
|