GetNthSpell - ActorBase

SKSE Member of: ActorBase Script

Returns the specified spell defined in the base actor form. (This function requires SKSE)

SyntaxEdit

Spell Function GetNthSpell(Int n) native

ParametersEdit

  • n : the Nth Spell of the base actor form

Return ValueEdit

Returns the specified spell defined in the base actor form.

ExamplesEdit

Spell BaseSpell01 = Player.GetNthSpell(0) ; BaseSpell01 = Flames

; What's the last base Spell of this Necromancer ?
Spell LastBaseSpell = NecromancerRef.GetActorBase().GetNthSpell(NecromancerRef.GetActorBase().GetSpellCount() - 1)

NotesEdit

Spells are listed in the same order that in the Actor's SpellList tab.

See AlsoEdit