First module appearing in 3den (not zeus yet). Created custom PREP macros for compiling functions similar to CBA/ACE.

This commit is contained in:
Clarky committed 2026-08-28 18:14:49 +10:00
1 parent 2a7c28af5f
commit c5755fb259
42 files changed
+1805 -7

No files matched your search

@@ -0,0 +1,33 @@
/*
* Author: Clarky
* Usage:
* [hq, this] call CLRK_fnc_initVehicleFactoryInteractions;
*  
* Intended to run locally on each client.
*
*/
params ["_engineering"];
_factory addAction [
"<t color='#71BDA6'>Open Vehicle Engineering</t>",
{
params ["_target", "_caller"];
// Load up the HQ as a variable for the player to access once proceeding through to building a vehicle
private _hq = _target getVariable ["hq", ""];
if (_hq isNotEqualTo "") then {
uiNamespace setVariable ["localHQ", _hq];
createDialog "VehicleFactoryDialog";
} else {
hint "No attached HQ.";
};
},
nil,
1,
true,
false,
"",
"true", // Figure out a way to lock this to player side checks (macros?)
6
];