Initial upload. Not currently functional as a mod. Includes some slightly refactored source code as well as the original mission this was debuted in zipped up as reference + example of usage.
This commit is contained in:
commit
75b737230e
32 files changed
+2049
No files matched your search
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
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]
|
||||
]
|
||||
];
|
||||
*/
|
||||
Reference in new issue
Block a user