GetHairColor - ActorBase

From Creation Kit
Revision as of 2012-05-10T04:34:56 by PurpleLunchbox (Talk | contribs)

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

SKSE Member of: ActorBase Script

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

Syntax

ColorForm Function GetHairColor() native

Parameters

None

Return Value

Returns ColorForm of this actors hair.

Examples

ActorBase pActorBase = Game.GetPlayer().GetActorBase()
ColorForm color = pActorBase.GetHairColor()
int hue = color.GetHue()
int sat = color.GetSaturation()
int lum = color.GetLuminosity()
if hue >= 230 && hue <= 255 && sat >= 190 && sat <= 255 && lum >= 125 && lum <= 255
	Debug.Trace("Player has red hair!")
endif

See Also