Anvil
Anvil.API.Events.PlaceableEvents.OnSpellCastAt Class Reference

Called when Spell has been casted on NwPlaceable. More...

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

Static Public Member Functions

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

Properties

NwGameObjectCaster = NWScript.GetLastSpellCaster().ToNwObject<NwGameObject>() [get]
 Gets the NwGameObject who cast Spell (NwCreature, NwPlaceable, NwDoor). Returns null from an NwAreaOfEffect. More...
 
bool Harmful = NWScript.GetLastSpellHarmful().ToBool() [get]
 Gets a value indicating whether this spell is considered harmful. More...
 
NwPlaceable Placeable = NWScript.OBJECT_SELF.ToNwObject<NwPlaceable>()! [get]
 Gets the NwPlaceable targeted by this spell. 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

Called when Spell has been casted on NwPlaceable.

Property Documentation

◆ Caster

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

Gets the NwGameObject who cast Spell (NwCreature, NwPlaceable, NwDoor). Returns null from an NwAreaOfEffect.

◆ Harmful

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

Gets a value indicating whether this spell is considered harmful.

◆ Placeable

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

Gets the NwPlaceable targeted by this spell.

◆ Spell

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

Gets the Spell that was cast.


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