28 lines
720 B
Plaintext
28 lines
720 B
Plaintext
/*
|
|||
|
|
* 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
|
||
|
|
];
|