Anvil
Loading...
Searching...
No Matches
Anvil.API.Events.CreatureEvents.OnSpellCastAt Class Referencesealed

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.
 
NwCreature Creature = NWScript.OBJECT_SELF.ToNwObject<NwCreature>()! [get]
 Gets the NwCreature targeted by this spell.
 
bool Harmful = NWScript.GetLastSpellHarmful().ToBool() [get]
 Gets a value indicating whether this spell is considered harmful.
 
NwSpell Spell = NwSpell.FromSpellId(NWScript.GetLastSpell())! [get]
 Gets the Spell that was cast.
 
- Properties inherited from Anvil.API.Events.IEvent

Detailed Description

Triggered by NwCreature when a spell is cast upon it.


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