FANDOM


The GetSpellTargetObject() NWScript command returns the object at which the caller's last spell was cast. This command is valid only when used in a spell's impact script.

Definition Edit

object GetSpellTargetObject ()

If the last spell did not target an object, OBJECT_INVALID is returned.

See also Edit

Community content is available under CC-BY-SA unless otherwise noted.