Mod:Creation Kit/SetAlpha - Actor

Member of: Mod:Creation Kit/Actor Script

Sets this actor's alpha value, optionally fading them to that value rather then popping.

Syntax
Function SetAlpha(float afTargetAlpha, bool abFade = false) native

Parameters

 * afTargetAlpha: The target alpha value, clamped to the 0 to 1 range. 0 is completely transparent, 1 is completely visible.
 * abFade: If true, the actor will fade over time - otherwise they will pop to the value.
 * Default: False

Return Value
None.

Examples
Ghost.SetAlpha(0.5) Ghost.SetAlpha(0.9, true)
 * Pop the ghost to half-transparent
 * Fade the ghost to mostly visible