Anvil
Anvil.API.Events.DoorEvents.OnSpellCastAt Class Reference
+ Inheritance diagram for Anvil.API.Events.DoorEvents.OnSpellCastAt:
+ Collaboration diagram for Anvil.API.Events.DoorEvents.OnSpellCastAt:

Static Public Member Functions

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

Properties

NwGameObject Caster = NWScript.GetLastSpellCaster().ToNwObject<NwGameObject>()! [get]
 Gets the caster of this Spell (NwCreature, NwPlaceable, NwDoor). Returns null from an NwAreaOfEffect. More...
 
NwDoor Door = NWScript.OBJECT_SELF.ToNwObject<NwDoor>()! [get]
 Gets the NwDoor 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]
 

Property Documentation

◆ Caster

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

Gets the caster of this Spell (NwCreature, NwPlaceable, NwDoor). Returns null from an NwAreaOfEffect.

◆ Door

NwDoor Anvil.API.Events.DoorEvents.OnSpellCastAt.Door = NWScript.OBJECT_SELF.ToNwObject<NwDoor>()!
get

Gets the NwDoor targeted by this Spell.

◆ Harmful

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

Gets a value indicating whether this spell is considered harmful.

◆ Spell

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

Gets the Spell that was cast.


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