Skip to main content

Introduction

This component allows an object to be damaged.

"Basic Damageable"

Fields#

NameDescription
HealthMaximum health
Stop Attacks HerePrevent attacks hitting this target from hitting additional targets
Destroy On DeathDestroy object when health reaches zero
Heal Over TimeHeal over time
Heal AmountAmount to heal each second
Damage Display PrefabUI Label prefab used to display damage
Ignore Damage TypesList of damage types to ignore
Absorb Damage TypesList of damage types to absorb (heal)

Properties#

NameDescription
actorGets the Actor for this object
healthGets the current health of the object
inInvulnerableFrameGets if the object is currently invulnerable
instanceIdGet the id of this instance of the object
parentGets the top-level Actor for this object

Methods#

NameDescription
AttackAttack this object
DisplayDamageDisplay damage dealt