Method ActionCastSpellAt
ActionCastSpellAt(NwSpell, NwGameObject, MetaMagic, bool, int, ProjectilePathType, bool, NwClass?, bool)
Casts a spell at an object.
public Task ActionCastSpellAt(NwSpell spell, NwGameObject target, MetaMagic metaMagic = MetaMagic.Any, bool cheat = false, int domainLevel = 0, ProjectilePathType projectilePathType = ProjectilePathType.Default, bool instant = false, NwClass? spellClass = null, bool spontaneousCast = false)
Parameters
spellNwSpellThe spell to cast.
targetNwGameObjectThe target for the spell.
metaMagicMetaMagicMetamagic that should be applied to the spell. If class is specified, cannot be Any.
cheatboolIf true, this object doesn't have to be able to cast the spell. Ignored if class is specified.
domainLevelintSpecifies the spell level if the spell is to be cast as a domain spell.
projectilePathTypeProjectilePathTypeThe type of projectile path to use for this spell.
instantboolIf true, the spell is cast immediately.
spellClassNwClassIf specified, the spell will be cast using that class specifically. Null will use spell abilities instead.
spontaneousCastboolIf true, the creature will attempt to cast the given spell spontaneously. Requires class parameter is set to a valid class with spontaneous cast spells.
Returns
ActionCastSpellAt(NwSpell, Location, MetaMagic, bool, ProjectilePathType, bool, NwClass?, bool, int)
Casts a spell at an location.
public Task ActionCastSpellAt(NwSpell spell, Location target, MetaMagic metaMagic = MetaMagic.Any, bool cheat = false, ProjectilePathType projectilePathType = ProjectilePathType.Default, bool instant = false, NwClass? spellClass = null, bool spontaneousCast = false, int domainLevel = 0)
Parameters
spellNwSpellThe spell to cast.
targetLocationThe target for the spell.
metaMagicMetaMagicMetamagic that should be applied to the spell.
cheatboolIf true, this object doesn't have to be able to cast the spell.
projectilePathTypeProjectilePathTypeThe type of projectile path to use for this spell.
instantboolIf true, the spell is cast immediately.
spellClassNwClassIf specified, the spell will be cast using that class specifically. Null will use spell abilities instead.
spontaneousCastboolIf true, the creature will attempt to cast the given spell spontaneously. Requires class parameter is set to a valid class with spontaneous cast spells.
domainLevelintSpecifies the spell level if the spell is to be cast as a domain spell.