Anvil
Anvil.API.Events.CreatureEvents.OnDamaged Class Reference

Triggered by NwCreature when taken damage from NwGameObject. More...

+ Inheritance diagram for Anvil.API.Events.CreatureEvents.OnDamaged:
+ Collaboration diagram for Anvil.API.Events.CreatureEvents.OnDamaged:

Properties

NwCreature Creature = NWScript.OBJECT_SELF.ToNwObject<NwCreature>()! [get]
 Gets the NwCreature that is taking damage. More...
 
int DamageAmount = NWScript.GetTotalDamageDealt() [get]
 Gets the amount of damage done by NwGameObject to NwCreature. More...
 
NwGameObject Damager = NWScript.GetLastDamager().ToNwObject<NwGameObject>()! [get]
 Gets the NwGameObject that damaged NwCreature. More...
 
- Properties inherited from Anvil.API.Events.IEvent
NwObjectContext [get]
 

Detailed Description

Triggered by NwCreature when taken damage from NwGameObject.

Property Documentation

◆ Creature

NwCreature Anvil.API.Events.CreatureEvents.OnDamaged.Creature = NWScript.OBJECT_SELF.ToNwObject<NwCreature>()!
get

Gets the NwCreature that is taking damage.

◆ DamageAmount

int Anvil.API.Events.CreatureEvents.OnDamaged.DamageAmount = NWScript.GetTotalDamageDealt()
get

Gets the amount of damage done by NwGameObject to NwCreature.

◆ Damager

NwGameObject Anvil.API.Events.CreatureEvents.OnDamaged.Damager = NWScript.GetLastDamager().ToNwObject<NwGameObject>()!
get

Gets the NwGameObject that damaged NwCreature.


The documentation for this class was generated from the following file: