Garry's Mod Wiki

NPC:GetBestSoundHint

  table NPC:GetBestSoundHint( number types )

Description

Returns the most dangerous/closest sound hint based on the NPCs location and the types of sounds it can sense.

Arguments

1 number types
The types of sounds to choose from. See SOUND_ enums

Returns

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