GetNthPart - Outfit
Jump to navigation
Jump to search
SKSE Member of: Outfit Script
Returns the Nth part of the outfit.
Syntax[edit | edit source]
Form Function GetNthPart(int n) native
Parameters[edit | edit source]
- N - The Index of which part to retrieve.
Return Value[edit | edit source]
The Form of the Indexed Part.
Examples[edit | edit source]
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