Health and attribute events reference
These contracts describe the released UCC 3.2.0 and Opsive Shared runtime. Match the target object, event name, parameter types and parameter order to the publisher in your installed version.
Health and attribute events
| Event | Parameters | Runtime use |
|---|---|---|
OnAttributeModifierAutoUpdateEnabled |
AttributeModifier, bool |
An Attribute Modifier’s automatic update was enabled or disabled. Use the same modifier instance and boolean signature in listeners. |
OnAttributeReachedDestinationValue |
() |
An Attribute reached its configured destination value. This event is scoped to the Attribute object. |
OnAttributeUpdateValue |
Attribute |
An Attribute value changed. This event is scoped to the Attribute Manager’s GameObject. |
OnDeath |
Vector3, Vector3, GameObject |
Health reached zero and reports impact position, force, and attacker. |
OnHealthDamage |
float, Vector3, Vector3, GameObject, Collider |
Health received damage with amount, position, force, attacker, and hit collider. |
OnHealthDamageWithData |
DamageData |
Health received the complete damage payload. |
OnHealthHeal |
float |
Health was healed by the supplied amount. |
OnRespawn |
() |
An object completed its respawn or pooled reset. |
OnWillRespawn |
() |
A Respawner is about to respawn the object. |