GetRed - ColorForm

SKSE Member of: ColorForm Script

Returns the red component of this color form. (This function requires SKSE)

SyntaxEdit

int Function GetRed() native

ParametersEdit

None

Return ValueEdit

Returns the red component of this color form. (From 0 to 255)

ExamplesEdit

ActorBase pActorBase = Game.GetPlayer().GetActorBase()
ColorForm color = pActorBase.GetHairColor()
int red = color.GetRed()
Debug.Trace("The amount of red in the players hair is " + red)
endif

See AlsoEdit