- Found in:
- Inventory Functions
boolfunctionActorHasSpell(ActorakActor, KeywordakKeyword=NONE, stringasSchool="", intaiLevel=-1, intaiLevelComparison=1, boolabSearchBase=true)Global
Description
Documentation String
Scans the MagicEffects of the Actor's spells, returning true at the first one that matches any of the supplied criteria.
NOTE: sending just the akActor (or sending all additional arguments as their default values) will return TRUE if the actor has any spell at all
Optionally will also check through the relevant ActorBase (which is more likely to be the one with the spells)
Documentation Comment
Additional spell-checking Functions
also added by Kalivore
Parameters
ActorakActor
KeywordakKeyword=NONE
stringasSchool=""
intaiLevel=-1
intaiLevelComparison=1
boolabSearchBase=true
Examples
Auto-Generated Example
Actor myActor__akActor
Keyword myKeyword__akKeyword
string myString__asSchool
int myInt__aiLevel
int myInt__aiLevelComparison
bool myBool__abSearchBase
bool returnedValue = _Q2C_Functions.ActorHasSpell(myActor__akActor, myKeyword__akKeyword, myString__asSchool, myInt__aiLevel, myInt__aiLevelComparison, myBool__abSearchBase)