Garry's Mod Wiki

NPC:GetBestSoundHint

NPC:GetBestSoundHint

table NPC:GetBestSoundHint( number types )

Just Added

This was just added in the latest version (2021.06.09). It might only be available on the Dev Branch right now.

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.

Special Pages


Wikis

?

Render Time: 60ms

DB GetPage 17
Generate Html 4
SaveChanges (1) 30
Render Body 0
Render Sidebar 6