mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Dragging - Fix being able to load cargo if the system is disabled (#9639)
This commit is contained in:
parent
c850a6a25f
commit
9f9507931f
@ -81,6 +81,7 @@ if (
|
||||
(_distance <= MAX_LOAD_DISTANCE_MAN) && {[_cursorObject, 0, true] call EFUNC(common,nearestVehiclesFreeSeat) isNotEqualTo []}
|
||||
} else {
|
||||
["ace_cargo"] call EFUNC(common,isModLoaded) &&
|
||||
{EGVAR(cargo,enable)} &&
|
||||
{[_target, _cursorObject] call EFUNC(cargo,canLoadItemIn)}
|
||||
}
|
||||
}
|
||||
|
@ -116,6 +116,7 @@ if (_tryLoad && {!isNull _cursorObject} && {[_unit, _cursorObject, ["isNotCarryi
|
||||
} else {
|
||||
if (
|
||||
["ace_cargo"] call EFUNC(common,isModLoaded) &&
|
||||
{EGVAR(cargo,enable)} &&
|
||||
{[_target, _cursorObject] call EFUNC(cargo,canLoadItemIn)}
|
||||
) then {
|
||||
[_unit, _target, _cursorObject] call EFUNC(cargo,startLoadIn);
|
||||
|
Loading…
Reference in New Issue
Block a user