GetSpellTargetObject
From NWN Lexicon
Jump to navigationJump to search
GetSpellTargetObject()
Retrieves the target of the caller's last spell.
Description
Returns the target (as an object) of OBJECT_SELF's last spell cast. Returns OBJECT_INVALID when there is no former target, OBJECT_SELF is incapable of casting spells, or an error occurred.
Remarks
This should only be used inside spell scripts. If you want to learn how to use the new spellhooking system, check the advanced scripting tutorials in the Lexicon's Lyceum.
Version
1.61
See Also
author: Charles Feduke, editor: Lilac Soul, additional contributor(s): Glenn Berden