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

Description

Wiki Description

Returns the specified added spell for the actor. (This function requires SKSE)

Documentation Comment

returns the specified added spell for the actor


Caveats

CK Wiki - Notes

Spells are listed in chronological order of addition.


Parameters

intn

CK Wiki Description

the Nth Spell added to the actor


Examples

Spell FirstSpell = PlayerRef.GetNthSpell(0)

; What's the very last Spell added to the Player ?
Spell LastSpell = PlayerRef.GetNthSpell(PlayerRef.GetSpellCount() - 1)

Auto-Generated Example

int myInt__n

Spell returnedValue = myActor__toCallFunctionOn.GetNthSpell(myInt__n)

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.