GetSpellCount - Actor

From Creation Kit
Jump to: navigation, search

SKSE Member of: Actor Script

Returns the number of added spells for the actor. (This function requires SKSE)

Syntax

Int Function GetSpellCount() native

Parameters

None

Return Value

Returns the number of added spells for the actor.

Examples

Int SpellsAddedNum = PlayerRef.GetSpellCount()

Notes

  • 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.

See Also