SetCartStaminaRate
How fast a cart’s horses tire - 0 never, 1 as they do, more for sooner.
A cart a player drives spends its team’s stamina at a trot (an empty wagon: about eight minutes) and faster at a canter (about two), the heavier the faster; a horse’s vitality makes it last longer. A walk or a stop brings it back.
Syntax
Section titled “Syntax”SetCartStaminaRate(id, rate)| Parameter | Type | |
|---|---|---|
id |
number | the cart |
rate |
number | 0 or more; 1 by default |
Returns
Section titled “Returns”boolean - false for no cart or a rate below 0
Example
Section titled “Example”SetCartStaminaRate(cart, 0) -- the post wagon's horses never tireSee also
Section titled “See also”GetCartStamina · OnCartHorsesTired · the Carts group of the index
