env_soundmark

An env_soundmark makes a sound or a smell each time you trigger it, which only monsters notice. With the sound type
Danger, monsters that know about grenades run from the spot, and with Combat, they come to it.
Calm monsters within the radius that care about the sound type react at once, even when they were busy with something else, such as greeting a player. A monster that is fighting or plays a script doesn't react this way.
Attributes
targetnameTriggering the entity makes the sound. See Common keys.
radiusSets how far the sound reaches, in units, and monsters within it notice it.
If you leave this key empty or set 0, it is 384.
384durationSets how many seconds the sound lasts.
If you leave this key empty or set 0, it is 0.3.
0.3positionSets where the sound is. It takes a locus position, so you can use a point such as 0 0 64, the name of an entity, or !activator for the entity that started the chain of triggers.
If you leave this key empty, the sound is at the env_soundmark itself.
typePicks the kind of sound. Each monster reacts only to the kinds it listens for.
- Combat (1) - The sound of a fight, which draws monsters in
- World (2) - A noise of the world
- Player (4) - A sound a player makes
- Carcass (8) - The smell of a dead body
- Meat (16) - The smell of meat
- Danger (32) - A danger such as a grenade, which monsters run from
- Garbage (64) - The smell of garbage
Danger (32)Flags
1Remove On fireThe entity is removed after it is used once
Making monsters run
A monster that runs from Danger needs an info_node at least the radius away and hidden from the
sound, and without one it stays where it is. Monsters side by side can block each other's way.
Notes
- If the entity can't find the position that Position names, it makes no sound for that trigger
See also
scripted_schedule- gives a monster a task such as moving to a spotmonster_target- a target that monsters attackinfo_node- the points monsters walk along
Changes since 1.38
env_soundmarkis new in SBO 2.0.0
