forked from Courseplay/courseplay
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmode8.lua
More file actions
15 lines (14 loc) · 752 Bytes
/
mode8.lua
File metadata and controls
15 lines (14 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
function courseplay:handle_mode8(vehicle)
for i,workTool in pairs(vehicle.tippers) do
-- courseplay:handleSpecialTools(vehicle, workTool, unfold, lower, turnOn, allowedToDrive, cover, unload)
local isSpecialTool, allowedToDrive, lx, lz = courseplay:handleSpecialTools(vehicle, workTool, nil, nil, nil, nil, nil, true );
if not isSpecialTool then
if workTool.trailerInTrigger ~= nil and workTool.fillLevel > 0 and not workTool.fill then
workTool.fill = true;
--ManureLager
elseif workTool.setIsReFilling ~= nil and workTool.ReFillTrigger ~= nil and workTool.fillLevel > 0 and not workTool.isReFilling then
workTool:setIsReFilling(true);
end;
end;
end;
end;