Background for Skyrim SE
Member of the Actor script
intfunctionGetSpellCount()Native

Description

Wiki Description

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

Documentation Comment

returns the number of added spells for the actor


Caveats

CK Wiki - 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 Actor.GetLeveledActorBase() on it. Then the correct count will appear. Refer to the notes about using Actor.GetActorBase() on leveled actors for more explaination, when using the GetActorBase version of this function.

Examples

Int SpellsAddedNum = PlayerRef.GetSpellCount()

Auto-Generated Example

int returnedValue = myActor__toCallFunctionOn.GetSpellCount()

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.