Garry's Mod Wiki

sound.GetLoudestSoundHint

  table sound.GetLoudestSoundHint( number types, Vector pos )

Description

Returns the most dangerous/closest sound hint based on given location and types of sounds to sense.

Arguments

1 number types
The types of sounds to choose from. See SOUND_ enums.
2 Vector pos
The position to sense sounds at.

Returns

1 table
A table with SoundHintData structure or nil if no sound hints are nearby.