GetGreen - ColorForm

From Creation Kit
Jump to: navigation, search

SKSE Member of: ColorForm Script

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

Syntax

int Function GetGreen() native

Parameters

None

Return Value

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

Examples

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

See Also