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.
Syntax
Section titled “Syntax”SetHorseInvulnerable(id [, invulnerable])| Parameter | Type | |
|---|---|---|
id |
number | the horse |
invulnerable |
boolean | true (the default) or false (optional) |
Returns
Section titled “Returns”boolean - false for anything but a horse
Example
Section titled “Example”-- the horses at the stable cannot be hurtSetHorseInvulnerable(horse, true)See also
Section titled “See also”GetHorseHealth · OnHorseDamage · SetActorInvulnerable · the Horses group of the index
