FIX: inverted transport and transported class parachute

This commit is contained in:
Vdauphin 2021-09-01 18:10:24 +02:00
parent d69fff6f9f
commit f602c19b3d

View File

@ -40,8 +40,8 @@ _object setVelocity ((velocity _vehicle) vectorAdd ((vectorNormalized (vectorDir
if (isNull _object || {getPos _object select 2 < 1}) exitWith {};
private _objectAttachedTo = attachedTo _object;
private _parachuteTypeVehicle = getText (configOf _vehicle >> "VehicleTransport" >> "Cargo" >> "parachuteClass");
private _parachuteTypeObject = getText (configOf _object >> "VehicleTransport" >> "Carrier" >> "parachuteClassDefault");
private _parachuteTypeVehicle = getText (configOf _vehicle >> "VehicleTransport" >> "Carrier" >> "parachuteClassDefault");
private _parachuteTypeObject = getText (configOf _object >> "VehicleTransport" >> "Cargo" >> "parachuteClass");
if (
!(_objectAttachedTo isKindOf _parachuteTypeVehicle) &&
!(_objectAttachedTo isKindOf _parachuteTypeObject)