GetNthPart - Outfit

From Creation Kit
Jump to: navigation, search

SKSE Member of: Outfit Script

Returns the Nth part of the outfit.

Syntax

Form Function GetNthPart(int n) native

Parameters

  • N - The Index of which part to retrieve.

Return Value

The Form of the Indexed Part.

Examples

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

See Also