GetSpellCount - Actor
SKSE Member of: Actor Script
Returns the number of added spells for the actor. (This function requires SKSE)
SyntaxEdit
Int Function GetSpellCount() native
ParametersEdit
None
Return ValueEdit
Returns the number of added spells for the actor.
ExamplesEdit
Int SpellsAddedNum = PlayerRef.GetSpellCount()
NotesEdit
- The count so excludes Race & ActorBase Spells.
- Due to the likelihood of calling of this on a leveled actor, the function will return 0 unless you call GetLeveledActorBase() on it. Then the correct count will appear. Refer to the notes about using GetActorBase() on leveled actors for more explaination, when using the GetActorBase version of this function.