GetNthPart - Outfit
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