34 lines
529 B
Plaintext
34 lines
529 B
Plaintext
/*
|
|
Author: Clarky
|
|
Usage:
|
|
["hq", "side"] call CLF_fnc_initBase;
|
|
|
|
Intended to run on the server to initialise a new base object - Typically when a new HQ is placed in the world
|
|
|
|
// DEPRECATED //
|
|
|
|
*/
|
|
|
|
/*
|
|
params ["_hq", "_side"];
|
|
|
|
waitUntil { !isNull _hq; };
|
|
|
|
private _baseID = format [
|
|
"BASE_%1",
|
|
diag_tickTime
|
|
];
|
|
|
|
_bases = missionNamespace getVariable "LogisticsBases";
|
|
|
|
_bases set [
|
|
_baseID,
|
|
createHashMapFromArray [
|
|
["id", _baseID],
|
|
["hq", _hq],
|
|
["buildings", []],
|
|
["depots", []],
|
|
["side", _side]
|
|
]
|
|
];
|
|
*/ |