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 SetLastGenericSpellCast().
Used in conjuction with setLastGenericSpellCast() and 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 "NW_I0_GENERIC"
Version
1.22
See Also
functions: | CompareLastSpellCast | GetLastSpell | SetLastGenericSpellCast |
categories: | Core AI Functions |
constants: | SPELL_* Constants |
author: Tom Cassiotis, editor: John Shuell
Send comments on this topic.