First module appearing in 3den (not zeus yet). Created custom PREP macros for compiling functions similar to CBA/ACE.
This commit is contained in:
1 parent
2a7c28af5f
commit
c5755fb259
42 files changed
+1805
-7
No files matched your search
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
* 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
|
||||
];
|
||||
|
||||
Reference in new issue
Block a user