Background for Skyrim SE
Member of the _Q2C_Functions script
boolfunctionActorBaseHasSpell(ActorBaseakActorBase, KeywordakKeyword=NONE, stringasSchool="", intaiLevel=-1, intaiLevelComparison=1)Global

Description

Documentation String

Scans the MagicEffects of the ActorBase's spells, returning true at the first one that matches any of the supplied criteria.
NOTE: sending just the akActorBase (or sending all additional arguments as their default values) will return TRUE if the ActorBase has any spell at all


Caveats


Parameters

ActorBaseakActorBase

KeywordakKeyword=NONE

stringasSchool=""

intaiLevel=-1

intaiLevelComparison=1


Examples

Auto-Generated Example

ActorBase myActorBase__akActorBase
Keyword myKeyword__akKeyword
string myString__asSchool
int myInt__aiLevel
int myInt__aiLevelComparison

bool returnedValue = _Q2C_Functions.ActorBaseHasSpell(myActorBase__akActorBase, myKeyword__akKeyword, myString__asSchool, myInt__aiLevel, myInt__aiLevelComparison)
Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.