GetNthPart - Outfit
Revision as of 07:31, 26 February 2013 by imported>Wafflesalot (Created page with "Category:Scripting Category:Papyrus Category:SKSE '''SKSE Member of:''' Outfit Script Returns the Nth part of the outfit. == Syntax == <source lang="papyrus"...")
SKSE Member of: Outfit Script
Returns the Nth part of the outfit.
SyntaxEdit
Form Function GetNthPart(int n) native
ParametersEdit
- N - The Index of which part to retrieve.
Return ValueEdit
The Form of the Indexed Part.
ExamplesEdit
Actor property Ralof Auto
int NumPart
Function Outfit()
NumPart = Ralof.GetActorBase().getoutfit().getnumparts()
while NumPart
Numpart -= 1
Form Clothing = Ralof.GetActorBase().GetOutfit().getNthPart(NumPart)
If (Clothing.IsCuirass()) ;Checks for the Cuirass Keyword.
Debug.Trace("Index " + NumPart + " is a Cuirass.")
EndIf
EndWhile
EndFunction