Skip to content

Scripted Staging

Small, reusable pieces for staged moments in a level: something that happens because the player reached a spot, not because a system decided it. Each piece is a component or actor a designer places and sets up in the level. Nothing is scripted in the level Blueprint, and nothing is tied to one map.

Piece What it does Where
URevealOnApproachComponent Keeps its actor out of sight until a player is near, then fades it in Staging/Components/
AQuestTriggerActor Grants a quest tag (and can start a dialogue) when a player enters its box Quest/Actors/, see Quests
ACombatEchoActor Replays a short fight as apparitions while a player is near Combat Teaching

Reveal on approach

A figure waiting on the road should be there when the player reaches that part of the road, not standing in view from the start. URevealOnApproachComponent hides every part of its actor that would be drawn, waits for a player, then fades the actor in over FadeSeconds and leaves it there.

When. A player inside RevealVolume reveals the actor. That can be a Trigger Box (turned or not) or any volume placed in the level. With no volume set, a player within RevealRadius (2D) of the actor does. A volume lets the reveal happen at a chosen spot on the road, such as the moment the player reaches a prop, rather than at a distance from the actor.

How it fades. FadeParameters lists scalar parameters on the actor's materials, each with its value while gone, a Delay from the reveal and its own Seconds (0 takes FadeSeconds). Each one is eased from that value to the material's own authored value, so parts can arrive one after another: smoke first, then a body. The materials are read at the reveal, so a dynamic instance the actor made for itself is the one faded. A mesh whose materials have none of the parameters just appears.

The echo materials (M_EchoHaze instances) fade by Dissolve (gone at 1), the default. Dissolve alone eats the figure evenly, which from the top-down camera reads as a blob growing out of its middle. DissolveSweep on the material instance (0 by default, 1 on Martha) holds the lower body back while it fades, so the figure condenses from the head down with its burning edge travelling down it (Shaders/EchoApparition.ush, Haze).

Co-op. Any player counts, and every machine works it out from the replicated pawns, so the party sees the actor appear together. Nothing replicates, and a dedicated server skips it.

Only the look changes. Collision and interaction stay as they are: a character's capsule can't be switched off without dropping it through the floor. Place the trigger so nobody can reach the actor before it shows.

OnRevealed fires as the fade starts, on every machine. Hook a sound or anything else the appearance should carry there.

Setting one up

  1. Add a Reveal On Approach component to the actor, in the level (for one placement) or in its Blueprint (for every placement).
  2. Place a Trigger Box where the reveal should happen, and pick it as Reveal Volume. Or leave it empty and set Reveal Radius.
  3. List the actor's fade parameters with their hidden values. Check them on the material (Material Instance editor, parameter list).

In use

  • Echo of Martha (L_Room_Forest_Start): she appears as the player comes up to the metal sheet. Trigger_RevealMartha (hidden in game) spans the road from 5 m before the sheet to 2.5 m short of her, so a running player sees her fade finish before reaching her (it started 1 m before the sheet, and a runner almost ran into her mid-fade); she stands 5.5 m past the sheet, so their interaction ranges stay apart. Over about 2.5 s her vapor card arrives first (VaporOpacity 0 over 0.8 s) and creeps from her crown to her chest (ChestLine 0 over 2 s), her body burns in from the head down (Dissolve 1, after 0.3 s, over 2.2 s, with DissolveSweep 1 on MI_EchoHaze_Martha), and the smoke loosens off her last (EdgeEnd 0.03, after 0.8 s, over 1.6 s).

Changelog

Date Change Detail
2026-11-08 Staged reveal Fade parameters get a delay, a length and easing; M_EchoHaze gets DissolveSweep for a head-down dissolve; Martha's reveal staged vapor-first
2026-11-08 URevealOnApproachComponent Hides an actor until a player is in a volume or radius, then fades it in by its material parameters; Martha in the forest start uses it