Background for Skyrim SE
Member of the ActorBase script
HeadPartfunctionGetNthHeadPart(intslotPart)Native

Description

Wiki Description

Returns the specified head part of this actor. (This function requires SKSE)


Caveats

CK Wiki - Notes

None


Parameters

intslotPart

CK Wiki Description

the Nth HeadPart of the ActorBase


Examples

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

Auto-Generated Example

int myInt__slotPart

HeadPart returnedValue = myActorBase__toCallFunctionOn.GetNthHeadPart(myInt__slotPart)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.