SetCartSpeed
One cart’s own pace - a route cart’s travelling speed, or the most a player may drive it at.
The speed in m/s (at most 15); 0 gives it back to its route’s or the server’s.
Syntax
Section titled “Syntax”SetCartSpeed(id, speed)| Parameter | Type | |
|---|---|---|
id |
number | the cart |
speed |
number | m/s; 0 = the route’s or the server’s |
Returns
Section titled “Returns”boolean
Example
Section titled “Example”SetCartSpeed(id, 3.5) -- a trot: the old mare pulls the mail cartSee also
Section titled “See also”HoldCart · CreateCart · the Carts group of the index
