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 worl…
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
| Field | Type | Default | Description |
|---|---|---|---|
source | entity | none | The entity whose Generator's clock cues the sound. |
period | number | 10 | The length of the effect's loop, in seconds of its clock. |
at | number | 0 | How 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.
Scoped to this part · feeds back into the world's score.