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,33 @@
|
||||
/*
|
||||
* Author: Clarky
|
||||
* Usage:
|
||||
* [hq, this] call CLF_fnc_initVehicleFactoryInteractions;
|
||||
*
|
||||
* Intended to run locally on each client.
|
||||
*
|
||||
*/
|
||||
|
||||
params ["_factory"];
|
||||
|
||||
_factory addAction [
|
||||
"<t color='#71BDA6'>Open Vehicle Factory</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
|
||||
];
|
||||
Reference in new issue
Block a user