GetSpellCount - Actor
Jump to navigation
Jump to search
SKSE Member of: Actor Script
Returns the number of added spells for the actor. (This function requires SKSE)
Syntax[edit | edit source]
Int Function GetSpellCount() native
Parameters[edit | edit source]
None
Return Value[edit | edit source]
Returns the number of added spells for the actor.
Examples[edit | edit source]
Int SpellsAddedNum = PlayerRef.GetSpellCount()
Notes[edit | edit source]
- 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.