Worst-case scenario: the UEd Goblin wipes the map and burns down your house.

UE2:Fader (U2XMP)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
U2XMP Object >> Actor >> LegendActorComponent >> Fader
Package: 
Legend

Fader.uc $Author: Mfox $ $Date: 4/30/02 12:22p $ $Revision: 2 $

Description: Makes the given Actor translucent and adjusts its ScaleGlow from InitialScaleGlow to FinalScaleGlow in FadeTime seconds. Once the ScaleGlow reaches FinalScaleGlow the Actor is destroyed. Note that in multiplayer games fading is not performed for now (for performance reasons), instead, after the DelayTime, the object is destroyed after FadeTime additional seconds.

How to use this class:

Call class'Util'.static.Fade( Actor, Time ); instead of Destroy();

Properties

Property group 'Fader'

bDeleteActor

Type: bool

Should we delete the actor when we are finished?

Default value: True

DelayTime

Type: float

Time to wait before starting to fade.

FadeTime

Type: float

How long it takes us to fade the given object out.

Default value: 0.5

FinalScaleGlow

Type: float

ScaleGlow the object ends with. (Must be less than InitialScaleGlow.)

InitialScaleGlow

Type: float

ScaleGlow the object start out with.

NumFlickers

Type: int


Internal variables

bInitialized

Type: bool

Have we finished with the delay?

FadeActor

Type: Actor

The Actor we are fading away.

FadeRate

Type: float

How fast the object will fade out. Calculated when Fade is called.

Default values

Property Value
RemoteRole ROLE_SimulatedProxy

Functions

Events

Tick

simulated event Tick (float DeltaTime)

Overrides: Actor.Tick


Other instance functions

Fade

simulated function Fade (Actor Other)