GetNumParts - Outfit

From Creation Kit
Revision as of 2013-02-26T06:29:51 by Wafflesalot (Talk | contribs) (Few Capitalisation edits.)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

SKSE Member of: Outfit Script

Returns how many parts are included in the outfit.


int Function GetNumParts() native

Return Value

The amount of parts in the outfit.


Actor property Ralof Auto
int numberOfParts
Function OutfitParts()
	numberOfParts = Ralof.GetActorBase().getoutfit().getnumparts()
	;The above line retrieves the actor Ralof's actorbase, then gets his normal outfit,
	;and finally retrieves the amount of pieces in the outfit.
	Debug.Trace("Ralof's outfit contains " + numberOfParts + " pieces.")

See Also