mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Use new command configOf
Co-authored-by: Filip Maciejewski <veteran29@users.noreply.github.com>
This commit is contained in:
parent
370b07105d
commit
0bf95f7917
@ -18,7 +18,7 @@
|
||||
params ["_vehicle"];
|
||||
|
||||
private _loadedVehicles = getVehicleCargo _vehicle - (_vehicle getVariable [QGVAR(loaded), []]);
|
||||
private _unloadingInterval = getNumber (configfile >> "CfgVehicles" >> typeOf _vehicle >> "VehicleTransport" >> "Carrier" >> "unloadingInterval");
|
||||
private _unloadingInterval = getNumber (configOf _vehicle >> "VehicleTransport" >> "Carrier" >> "unloadingInterval");
|
||||
{
|
||||
[{objnull setVehicleCargo _this}, _x, _forEachIndex * _unloadingInterval] call CBA_fnc_waitAndExecute;
|
||||
} forEach _loadedVehicles;
|
||||
|
Loading…
Reference in New Issue
Block a user