Background for Fallout 4
Member of the Actor script
voidfunctionSetAlpha(floatafTargetAlpha, boolabFade=false)Native

Description

Wiki Description

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

Documentation Comment

Sets this actor's alpha - with an optional fade to that alpha
The alpha will be clamped between 0 and 1


Caveats

CK Wiki - Notes

The player cannot be faded completely out and will always remain partially visible.


Parameters

floatafTargetAlpha

CK Wiki Description

The target alpha value, clamped to the 0 to 1 range. 0 is completely transparent, 1 is completely visible.

boolabFade=false

CK Wiki Description

If true, the actor will fade over time - otherwise they will pop to the value.

  • Default:False

Examples

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

Auto-Generated Example

float myFloat__afTargetAlpha
bool myBool__abFade

myActor__toCallFunctionOn.SetAlpha(myFloat__afTargetAlpha, myBool__abFade)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.