GetNthHeadPart - ActorBase
Revision as of 05:44, 5 September 2012 by imported>Seigneur Voland (Created page with "Category:Scripting Category:Papyrus Category:SKSE '''SKSE Member of:''' ActorBase Script Returns the specified head part of this actor. (This function require...")
SKSE Member of: ActorBase Script
Returns the specified head part of this actor. (This function requires SKSE)
SyntaxEdit
HeadPart Function GetNthHeadPart(Int slotPart) native
ParametersEdit
- slotPart : the Nth HeadPart of the ActorBase
Return ValueEdit
Returns the Nth HeadPart of an ActorBase as HeadPart.
ExamplesEdit
HeadPart PlayerEyes = Player.GetNthHeadPart(3) ; PlayerEyes = MaleEyesHumanLightBlue
int hp = Player.GetNumHeadParts()
Trace("Player HeadParts Num : "+hp)
int i = 0
WHILE i < hp
Trace("Player HeadPart("+i+") : "+Player.GetNthHeadPart(i).GetName())
i += 1
EndWHILE
; Has Player a beard ?
if ( Player.GetNthHeadPart(6) != BeardList.GetAt(0) as HeadPart ) ; BeardList.GetAt(0) = HumanBeard00NoBeard
Notification("Player has a beard !")
endif
NotesEdit
None