GetLastGenericSpellCast
From NWN Lexicon
Jump to navigationJump to search
GetLastGenericSpellCast()
Retrieves the last spell that was cast by the calling creature.
int GetLastGenericSpellCast();
Description
Returns a SPELL_* constant for the last spell used which was stored by calling CompareLastSpellCast ().
Remarks
Uses the local variable name "NW_GENERIC_LAST_SPELL".
Used by BioWare core AI system so it doesn't keep casting the same spell.
Requirements
#include " x0_inc_generic "
Version
1.22
See Also
| functions: | |
| constants: |
author: Tom Cassiotis, editors: John Shuell, Mistress