GetRed - ColorForm

From the CreationKit Wiki
Revision as of 16:04, 10 May 2012 by imported>PurpleLunchbox (Created page with "Category:Scripting Category:Papyrus Category:SKSE '''SKSE Member of:''' ColorForm Script Returns the red component of this color form. (This function requires...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

SKSE Member of: ColorForm Script

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

Syntax

int Function GetRed() native

Parameters

None

Return Value

Returns the red component of this color form.

Examples

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 Also