OnCartStop
A route’s cart pulled up at one of its stops and waits there.
stop is the stop’s name from the route ("" for one without). The cart waits the stop’s wait seconds, longer while
someone climbs in or out, or as long as HoldCart says.
Syntax
Section titled “Syntax”function OnCartStop(id, route, stop) -- ...end| Parameter | Type | |
|---|---|---|
id |
number | the cart |
route |
string | the route’s name |
stop |
string | the stop’s name |
Returns
Section titled “Returns”nothing
Example
Section titled “Example”-- the passengers hear where they arefunction OnCartStop(id, route, stop) for _, pid in ipairs(GetCartPassengers(id)) do GameText(pid, stop, 3000) endendSee also
Section titled “See also”AddCartRoute · HoldCart · GetCartPassengers · the Carts group of the index
