SetHairColor - ActorBase

From the CreationKit Wiki
Jump to navigation Jump to search

SKSE Member of: ActorBase Script

Sets the ColorForm of this actors hair. (This function requires SKSE)

Syntax[edit | edit source]

Function GetHairColor(ColorForm color) native

Parameters[edit | edit source]

  • color: The color form that this actors hair will be.

Return Value[edit | edit source]

None

Notes[edit | edit source]

  • This function is performed on an ActorBase, meaning all Actors derived from this will have their hair color set.
  • This functions requires QueueNiNodeUpdate to be called for the changes to be visible.
  • This function also requires that preprocessed heads be disabled before calling QueueNiNodeUpdate.

Examples[edit | edit source]

Form Property Black Auto ; Creation Kit may not recognize the new ColorForm type

ActorBase pActorBase = Game.GetPlayer().GetActorBase()
ColorForm colorBlack = Black as ColorForm
pActorBase.SetHairColor(colorBlack)
; string facegen = "bUseFaceGenPreprocessedHeads:General"
; Utility.SetINIBool(facegen, false)
; Game.GetPlayer().QueueNiNodeUpdate()
; Utility.SetINIBool(facegen, true)

See Also[edit | edit source]