function ActionCastSpellAtLocation (int nSpell, location lTargetLocation, int bCheat=FALSE, int nProjectilePathType=PROJECTILE_PATH_TYPE_DEFAULT, int bInstantSpell=FALSE)

Cast spell nSpell at lTargetLocation.

  • nSpell: SPELL_* - lTargetLocation
  • bCheat: If this is TRUE, then the executor of the action doesn't have to be able to cast the spell.
  • nProjectilePathType: PROJECTILE_PATH_TYPE_*
  • bInstantSpell: If this is TRUE, the spell is cast immediately; this allows the end-user to simulate a high-level magic user having lots of advance warning of impending trouble.
  • Return type: void
  • Include file: nwscriptdefn

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.