GetSpellCount - Actor
From Creation Kit
SKSE Member of: Actor Script
Returns the number of added spells for the actor. (This function requires SKSE)
Int Function GetSpellCount() native
Returns the number of added spells for the actor.
Int SpellsAddedNum = PlayerRef.GetSpellCount()
- 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.