Use new command configOf

Co-authored-by: Filip Maciejewski <veteran29@users.noreply.github.com>
This commit is contained in:
Vdauphin 2020-11-07 09:58:23 +01:00 committed by GitHub
parent b9eb48c64d
commit 370b07105d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,5 +22,5 @@ params [
];
driver _vehicle isEqualTo _unit &&
{isClass (configfile >> "CfgVehicles" >> typeOf _vehicle >> "VehicleTransport" >> "Carrier")} &&
{isClass (configOf _vehicle >> "VehicleTransport" >> "Carrier")} &&
{!(getVehicleCargo _vehicle - (_vehicle getVariable [QGVAR(loaded), []]) isEqualTo [])}