soundEvent
Module: soundEvent — environment_soundEvent.lua
What it does
Plays a random ambient or danger sound at a position near but offset from the player. A random angle is chosen and two positions are computed along that bearing: an audio emitter 10 tiles away (where the actual sound plays at full volume) and a zombie-attractor meta-sound 50 tiles away (which draws zombies toward that location without producing audible audio for the player). The sound is chosen randomly from the built-in pool listed below.
Trigger type
soundEvent
Parameters
| Parameter | Type | Default | Valid Values | Description |
|---|---|---|---|---|
type |
string | required | "soundEvent" |
Must exactly match the module name. No other parameters are read by this module. |
Examples
Play a random ambient sound near the player
{ type="soundEvent" }
With viewer attribution (extra keys are ignored by the module)
{ type="soundEvent", viewer="ChaosDonor" }
As part of a chaos event payload
{ type="soundEvent", user="StreamerName", message="Something lurks nearby..." }