Damageable is an interface which defines properties, events, and functions for objects which can take damage and die.
     Property Name  Return Type  Description  Tags        hitPointsnumberCurrent amount of hit points.  Read-Write     maxHitPointsnumberMaximum amount of hit points.  Read-Write      
     Function Name  Return Type  Description  Tags        ApplyDamage(Damage)NoneDamages a Damageable, unless it is invulnerable. If its hit points reach 0 and it is not immortal, it dies.  Server-Only     Die([Damage])NoneKills the Damageable, unless it is immortal. The optional Damage parameter is a way to communicate cause of death.  Server-Only      
     Event Name  Return Type  Description  Tags        damagedEventEventDamageable damageable, DamageFired when the Damageable takes damage.  Server-Only     diedEventEventDamageable damageable, DamageFired when the Damageable dies.  Server-Only     hitPointsChangedEventEventDamageable damageable, number previousHitPoints>Fired when there's a change in hit points on the Damageable.  Server-Only      
     Hook Name  Return Type  Description  Tags        damageHookHookDamageable damageable, DamageHook called when applying damage from a call to ApplyDamage(). The incoming damage may be modified or prevented by modifying properties on the damage parameter.  Server-Only      
    Last update: April 13, 2023