GetLuminosity - ColorForm

From Creation Kit
Jump to: navigation, search


Achtung.png This Function is now obsolete use GetValue instead. Check Talk for more details.


SKSE Member of: ColorForm Script

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

Syntax

int Function GetLuminosity() native

Parameters

None

Return Value

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

Examples

ActorBase pActorBase = Game.GetPlayer().GetActorBase()
ColorForm color = pActorBase.GetHairColor()
int luminosity = color.GetLuminosity()
Debug.Trace("Luminosity: " + luminosity)
endif

See Also