GetNthSpell - Actor

From Creation Kit
Jump to: navigation, search

SKSE Member of: Actor Script

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

Syntax

Spell Function GetNthSpell(Int n) native

Parameters

  • n : the Nth Spell added to the actor

Return Value

Returns the specified added spell for 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)

Notes

Spells are listed in chronological order of addition.

See Also