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:
Clarky committed 2026-08-08 17:42:15 +10:00
commit 75b737230e
32 files changed
+2049

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
/*
Author: Clarky
Usage:
[this, 300, 0, 50] call CLF_fnc_initSupplyVehicle;
Intended to run on the server, which calls a CBA event handler that runs a client-level script for adding relevant interactions
*/
params ["_vehicle", "_maxMateriel", "_currentMateriel", "_transferRate"];
_vehicle setVariable ["isSupplyVehicle", true, true];
_vehicle setVariable ["maxMateriel", _maxMateriel, true];
_vehicle setVariable ["currentMateriel", _currentMateriel, true];
_vehicle setVariable ["transferRate", _transferRate, true];
[_vehicle] remoteExecCall [
"CLF_fnc_initSupplyVehicleInteractions",
0,
true
];
/*
[
"CLF_SupplyVehicleCreated",
[_vehicle]
] call CBA_fnc_globalEventJIP;
*/