Log inGet started
World

Procgen Effects Showcase

Branchmain
Branchesmain
Commit99ff90d12c

README.md

CuedSound

Plays its entity's sound on a moment of an effect: each time the clock of the Generator on source passes at seconds into every period-second loop of it, the Audio component on the same entity plays from its start. It cues in play (update) and stays silent while the world is edited.

In fx_blast it sits on the blast_audio entity beside the explosion clip, with source the wall_blast Generator, period 9.6 and at 1.0: the charge goes off one second into each 9.6 s loop of the wall_blast graph.

Fields

FieldTypeDefaultDescription
sourceentitynoneThe entity whose Generator's clock cues the sound.
periodnumber10The length of the effect's loop, in seconds of its clock.
atnumber0How far into each loop the sound plays, in seconds.

All fields are Sync. A source that is gone, carries no Generator, or has no graph bound cues nothing until it has a clock again.