Loading the Kaya editor…
emitEvent(
  eventType: "actors.narrator.speech",
  data: {text: "The room grows dark."},
  channel: "actors.narrator.speech",
  timing: {key: "openLine", duration: 2}
)
emitEvent(
  eventType: "env.sfx",
  data: {sound: "thunder"},
  channel: "env.sfx",
  timing: {after: {ref: "key:openLine", edge: "start", offset: 1}, duration: 0.5}
)

// This IDE shows the events, rather than a scene or audio player.
"Open Logs → Events to see the narrator's timing key and the thunder's anchor."