Files
Clarksons_Logi_Framework/functions/fn_initVehicleFactory.sqf
T

28 lines
720 B
Plaintext
Raw Normal View History

/*
* 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
];