2026-08-29 00:37:37 +10:00
|
|
|
|
#include "..\..\script_component.hpp"
|
|
|
|
|
|
/*
|
|
|
|
|
|
* Author: Clarky
|
|
|
|
|
|
* Description:
|
|
|
|
|
|
* Describe the function
|
|
|
|
|
|
*
|
|
|
|
|
|
* Arguments:
|
|
|
|
|
|
* 0: Linked HQ <OBJECT>
|
|
|
|
|
|
* 1: Engineering Bay <OBJECT>
|
|
|
|
|
|
*
|
|
|
|
|
|
* Usage:
|
|
|
|
|
|
* [_object, _integer] call CLF_fnc_template
|
|
|
|
|
|
*
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
2026-08-28 18:14:49 +10:00
|
|
|
|
/*
|
|
|
|
|
|
* Author: Clarky
|
|
|
|
|
|
* Usage:
|
|
|
|
|
|
* [hq, this] call CLRK_fnc_initVehicleFactoryInteractions;
|
|
|
|
|
|
*
|
|
|
|
|
|
* Intended to run locally on each client.
|
|
|
|
|
|
*
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
params ["_engineering"];
|
|
|
|
|
|
|
2026-08-29 14:38:47 +10:00
|
|
|
|
_engineering addAction [
|
2026-08-28 18:14:49 +10:00
|
|
|
|
"<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
|
2026-08-29 14:38:47 +10:00
|
|
|
|
];
|