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:
Clarky committed 2026-08-08 17:42:15 +10:00
commit 75b737230e
32 files changed
+2049

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
/*
* Author: Clarky
* Usage:
* [this, 1000, 0, false, 0] call CLF_fnc_initVehicleFactory;
*
* Intended to run on the server, which calls a CBA event handler that runs a client-level script for adding relevant interactions
*
*/
params [["_hq", "", ["", objNull]], "_factory"];
waitUntil { !isNull _hq; };
_factory setVariable ["isVehicleFactory", true, true];
if (_hq isNotEqualTo "") then {
_factory setVariable ["hq", _hq, true];
private _baseDetails = _hq getVariable "baseDetails";
private _buildings = _baseDetails get "buildings";
_buildings pushBack _factory;
//_hq setVariable ["baseDetails", _baseDetails];
};
[_factory] remoteExecCall [
"CLF_fnc_initVehicleFactoryInteractions",
0,
true
];