Garry's Mod Wiki

sound.EmitHint

  sound.EmitHint( number hint, Vector pos, number volume, number duration, Entity owner = NULL )

Description

Emits a sound hint to the game elements to react to, for example to repel or attract antlions.

Arguments

1 number hint
The hint to emit. This can be a bit flag. See SOUND enum
2 Vector pos
The position to emit the hint at
3 number volume
The volume or radius of the hint
4 number duration
The duration of the hint in seconds
5 Entity owner = NULL
If set, the sound hint will be ignored/deleted when the given entity is destroyed.