GetHorseType
A horse’s type.
Syntax
Section titled “Syntax”GetHorseType(id)| Parameter | Type | |
|---|---|---|
id |
number | the horse |
Returns
Section titled “Returns”string - the type ("riding" when it was given none); nil for anything but a horse
Example
Section titled “Example”if GetHorseType(horse) ~= "draft" then SendClientMessage(pid, COLOR_RED, "That horse will tire fast in front of a cart.") endSee also
Section titled “See also”SetHorseType · the Horses group of the index
