First module now working via 3den placement syncing. Visible in Zeus, but not functional.

This commit is contained in:
Clarky committed 2026-08-29 00:37:37 +10:00
1 parent c5755fb259
commit 00eee092c3
34 files changed
+154 -45

No files matched your search

@@ -0,0 +1,34 @@
#include "..\..\script_component.hpp"
/*
* Author: Clarky
* Description:
* Initialises a Supply Vehicle. Intended to be called as a function by internal processes, or exposed as a module in Eden and Zeus
*
* Arguments:
* 0: Vehicle <OBJECT>
* 1: Max Load <INT>
* 2: Current Materiel <INT>
* 3: Current Ore <INT>
* 4: Transfer Rate <INT>
*
* Usage:
* [this, 500, 0, 0, 100] call CLRK_fnc_initSupplyVehicle
*
*/
params ["_vehicle", "_maxLoad", "_currentMateriel", "_currentOre", "_transferRate"];
if (!isServer) exitWith {};
_vehicle setVariable ["isSupplyVehicle", true, true];
_vehicle setVariable ["maxLoad", _maxMateriel, true];
_vehicle setVariable ["currentMateriel", _currentMateriel, true];
_vehicle setVariable ["currentOre", _currentOre, true];
_vehicle setVariable ["transferRate", _transferRate, true];
[_vehicle] remoteExecCall [
"CLF_fnc_initSupplyVehicleInteractions",
0,
true
];