- Found in:
- Inventory Functions
Spell[]functionActorGetSpells(ActorakActor, KeywordakKeyword=NONE, stringasSchool="", intaiLevel=-1, intaiLevelComparison=1, boolabSearchBase=true)NativeGlobal
Description
Documentation String
Scans the MagicEffects of the Actor's spells, adding the Spell to the returned array if the MagicEffect matches the criteria.
Use the default values to ignore that condition (eg sending asSchool as "" means 'of any School')
NOTE: sending just the akActor (or sending all additional arguments as their default values) will now return ALL spells the Actor knows - rather than an empty list as before
Optionally will also check through the relevant ActorBase (which is more likely to be the one with the spells)
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
Spell[] returnedValue = _Q2C_Functions.ActorGetSpells(myActor__akActor, myKeyword__akKeyword, myString__asSchool, myInt__aiLevel, myInt__aiLevelComparison, myBool__abSearchBase)