feat: udkørsel "Lever også til" (fodring med samme vogn) + låst traktor og vogn til flowet

This commit is contained in:
2026-10-20 12:29:17 +02:00
parent d074a0640a
commit 34f47dffc8
18 changed files with 340 additions and 27 deletions
+2
View File
@@ -115,6 +115,8 @@ local function isBusy(vehicle)
if id ~= nil and ADFieldJobs ~= nil and ADFieldJobs.state ~= nil and (ADFieldJobs.state.assignments or {})[id] ~= nil then return true end
if ADRunsController ~= nil and ADRunsController.getActiveRunForVehicle(vehicle) ~= nil then return true end
if ADLivestock ~= nil and ADLivestock.isOnTrip ~= nil and ADLivestock.isOnTrip(vehicle) then return true end
-- låst flow-sæt (20/10): kører ikke selv hjem til gården efter spillerkørsel
if ADFlowWagons ~= nil and ADFlowWagons.isLockedSet ~= nil and ADFlowWagons.isLockedSet(vehicle) then return true end
if ADPlayerTransport ~= nil and ADPlayerTransport.isPickup ~= nil and ADPlayerTransport.isPickup(vehicle) then return true end
return ADFlowWagons ~= nil and ADFlowWagons.statusOf ~= nil and ADFlowWagons.statusOf(vehicle) ~= nil
end