Anvil
Anvil.API.Events.CreatureEvents.OnSpellCastAt Class Reference

Triggered by NwCreature when a spell is cast upon it. More...

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

Static Public Member Functions

static void Signal (NwObject caster, NwCreature target, NwSpell spell, bool harmful=true)
 

Properties

NwGameObject Caster = NWScript.GetLastSpellCaster().ToNwObject<NwGameObject>()! [get]
 Gets the NwGameObject of this spell. Returns null from an area of effect. More...
 
NwCreature Creature = NWScript.OBJECT_SELF.ToNwObject<NwCreature>()! [get]
 Gets the NwCreature targeted by this spell. More...
 
bool Harmful = NWScript.GetLastSpellHarmful().ToBool() [get]
 Gets a value indicating whether this spell is considered harmful. More...
 
NwSpell Spell = NwSpell.FromSpellId(NWScript.GetLastSpell())! [get]
 Gets the Spell that was cast. More...
 
- Properties inherited from Anvil.API.Events.IEvent
NwObjectContext [get]
 

Detailed Description

Triggered by NwCreature when a spell is cast upon it.

Property Documentation

◆ Caster

NwGameObject Anvil.API.Events.CreatureEvents.OnSpellCastAt.Caster = NWScript.GetLastSpellCaster().ToNwObject<NwGameObject>()!
get

Gets the NwGameObject of this spell. Returns null from an area of effect.

◆ Creature

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

Gets the NwCreature targeted by this spell.

◆ Harmful

bool Anvil.API.Events.CreatureEvents.OnSpellCastAt.Harmful = NWScript.GetLastSpellHarmful().ToBool()
get

Gets a value indicating whether this spell is considered harmful.

◆ Spell

NwSpell Anvil.API.Events.CreatureEvents.OnSpellCastAt.Spell = NwSpell.FromSpellId(NWScript.GetLastSpell())!
get

Gets the Spell that was cast.


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