SetHorseHealth
Sets a living horse’s health.
0 .. 100 (more is 100); raising it heals the horse. 0 kills it now - on every screen, its rider off it -
and OnHorseDeath runs with no attacker. Refused on a dead horse: it stays dead until it is removed.
Syntax
Section titled “Syntax”SetHorseHealth(id, health)| Parameter | Type | |
|---|---|---|
id |
number | the horse |
health |
number | 0 .. 100 |
Returns
Section titled “Returns”boolean - false for a dead horse or anything but a horse
Example
Section titled “Example”-- the stable's care: every horse taken out is whole againSetHorseHealth(horse, 100)See also
Section titled “See also”GetHorseHealth · OnHorseDeath · the Horses group of the index
