GetNthSpell - Actor

From the CreationKit Wiki
Jump to navigation Jump to search

SKSE Member of: Actor Script

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

Syntax[edit | edit source]

Spell Function GetNthSpell(Int n) native

Parameters[edit | edit source]

  • n : the Nth Spell added to the actor

Return Value[edit | edit source]

Returns the specified added spell for the actor.

Examples[edit | edit source]

Spell FirstSpell = PlayerRef.GetNthSpell(0)

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

Notes[edit | edit source]

Spells are listed in chronological order of addition.

See Also[edit | edit source]