Anvil
Anvil.API.Events.PlaceableEvents.OnDamaged Class Reference

Called when NwGameObject has damaged NwPlaceable. More...

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

Public Member Functions

int GetDamageDealtByType (DamageType damageType)
 Gets DamageType dealt to NwPlaceable. More...
 

Properties

NwPlaceable DamagedObject = NWScript.OBJECT_SELF.ToNwObject<NwPlaceable>()! [get]
 Gets the NwPlaceable that was damaged. More...
 
NwGameObjectDamager = NWScript.GetLastDamager().ToNwObject<NwGameObject>() [get]
 Gets the NwGameObject that damaged the NwPlaceable. More...
 
int TotalDamageDealt = NWScript.GetTotalDamageDealt() [get]
 Gets the total damage dealt to NwPlaceable. More...
 
- Properties inherited from Anvil.API.Events.IEvent
NwObjectContext [get]
 

Detailed Description

Called when NwGameObject has damaged NwPlaceable.

Member Function Documentation

◆ GetDamageDealtByType()

int Anvil.API.Events.PlaceableEvents.OnDamaged.GetDamageDealtByType ( DamageType  damageType)
inline

Gets DamageType dealt to NwPlaceable.

Property Documentation

◆ DamagedObject

NwPlaceable Anvil.API.Events.PlaceableEvents.OnDamaged.DamagedObject = NWScript.OBJECT_SELF.ToNwObject<NwPlaceable>()!
get

Gets the NwPlaceable that was damaged.

◆ Damager

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

Gets the NwGameObject that damaged the NwPlaceable.

◆ TotalDamageDealt

int Anvil.API.Events.PlaceableEvents.OnDamaged.TotalDamageDealt = NWScript.GetTotalDamageDealt()
get

Gets the total damage dealt to NwPlaceable.


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