SetHorseGear
Dresses a horse in exactly this gear, on every screen.
Whatever the horse wore comes off and the list’s items go on - a saddle, a bridle, saddlebags, a caparison (the catalogue’s
HorseGear category). A class is any key of the item catalogue; an unknown one is logged and
skipped. What the saddlebags hold stays in them (SetHorseItems). Players arriving later see the same.
Syntax
Section titled “Syntax”SetHorseGear(id, classes)| Parameter | Type | |
|---|---|---|
id |
number | the horse |
classes |
table | a list of item keys (GUIDs or names), as GetHorseGear returns it |
Returns
Section titled “Returns”boolean - false when it is not a horse
Example
Section titled “Example”-- a stable hand saddles and bridles the horse the player just boughtSetHorseGear(horse, {"BasicSaddle01_m01", "BasicBridle01_m01"})See also
Section titled “See also”GetHorseGear · SetHorseItems · CreateHorse · the Horses group of the index
