Skip to content

HoldCart

Keeps a route’s cart standing - or sends it on at once.

It pulls up where it is (slowing like at a stop) and stands seconds seconds; 0 ends a hold or a stop’s wait at once.

HoldCart(id, seconds)
Parameter Type
id number the cart
seconds number how long it stands (at most 3600); 0 = on its way now

boolean - false when it is not on a route

-- a toll gate: every cart waits half a minute there
function OnCartStop(id, route, stop)
if stop == "Toll gate" then HoldCart(id, 30) end
end

OnCartStop · SetCartSpeed · the Carts group of the index