Triggered by NwCreature when a spell is cast upon it.
More...
Triggered by NwCreature when a spell is cast upon it.
◆ 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 |
◆ Harmful
bool Anvil.API.Events.CreatureEvents.OnSpellCastAt.Harmful = NWScript.GetLastSpellHarmful().ToBool() |
|
get |
Gets a value indicating whether this spell is considered harmful.
◆ Spell
Gets the Spell that was cast.
The documentation for this class was generated from the following file:
- NWN.Anvil/src/main/API/Events/Game/CreatureEvents/CreatureEvents.OnSpellCastAt.cs