GetNthSpell - ActorBase
Revision as of 05:02, 7 September 2012 by imported>Seigneur Voland (Created page with "Category:Scripting Category:Papyrus Category:SKSE '''SKSE Member of:''' ActorBase Script Returns the specified spell defined in the base actor form. (This fun...")
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.