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.
Syntax
Section titled “Syntax”HoldCart(id, seconds)| Parameter | Type | |
|---|---|---|
id |
number | the cart |
seconds |
number | how long it stands (at most 3600); 0 = on its way now |
Returns
Section titled “Returns”boolean - false when it is not on a route
Example
Section titled “Example”-- a toll gate: every cart waits half a minute therefunction OnCartStop(id, route, stop) if stop == "Toll gate" then HoldCart(id, 30) endendSee also
Section titled “See also”OnCartStop · SetCartSpeed · the Carts group of the index
