Skip to content

SetHorseInvulnerable

No blow hurts the horse.

A hit on it is refused before OnHorseDamage (false = it takes hits again). The mode’s own SetHorseHealth still works.

SetHorseInvulnerable(id [, invulnerable])
Parameter Type
id number the horse
invulnerable boolean true (the default) or false (optional)

boolean - false for anything but a horse

-- the horses at the stable cannot be hurt
SetHorseInvulnerable(horse, true)

GetHorseHealth · OnHorseDamage · SetActorInvulnerable · the Horses group of the index