Skip to content

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.

SetHorseHealth(id, health)
Parameter Type
id number the horse
health number 0 .. 100

boolean - false for a dead horse or anything but a horse

-- the stable's care: every horse taken out is whole again
SetHorseHealth(horse, 100)

GetHorseHealth · OnHorseDeath · the Horses group of the index