- Found in:
- Inventory Functions
Spell[]functionActorBaseGetSpells(ActorBaseakActorBase, KeywordakKeyword=NONE, stringasSchool="", intaiLevel=-1, intaiLevelComparison=1)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 akActorBase (or sending all additional arguments as their default values) will now return ALL spells set on the ActorBase - rather than an empty list as before
Parameters
Examples
Auto-Generated Example
ActorBase myActorBase__akActorBase
Keyword myKeyword__akKeyword
string myString__asSchool
int myInt__aiLevel
int myInt__aiLevelComparison
Spell[] returnedValue = _Q2C_Functions.ActorBaseGetSpells(myActorBase__akActorBase, myKeyword__akKeyword, myString__asSchool, myInt__aiLevel, myInt__aiLevelComparison)