GetSpellTargetObject
From NWN Lexicon
Contents |
[edit] GetSpellTargetObject()
Retrieves the target of the caller's last spell.
[edit] 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 occured.
[edit] 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.
[edit] Version
1.61
[edit] See Also
author: Charles Feduke, editor: Lilac Soul, additional contributor(s): Glenn Berden