SetCartParts
Changes several parts of a cart at once.
Each slot = part as SetCartPart takes it; the ones it refuses leave their slot as it was.
Syntax
Section titled “Syntax”SetCartParts(id, parts)| Parameter | Type | |
|---|---|---|
id |
number | the cart |
parts |
table | {body =, axle =, wheels =, load =, horse1 =, horse2 =} - any of them |
Returns
Section titled “Returns”boolean - false when any was refused (the others are set)
Example
Section titled “Example”-- the cartwright's finest: a covered wagon and a pair of greysSetCartParts(cart, {body = "b_covered", axle = "b_covered", horse1 = "light_grey", horse2 = "dark_grey"})See also
Section titled “See also”SetCartPart · GetCartParts · the Carts group of the index
