Garry's Mod Wiki

sound.GetLoudestSoundHint

sound.GetLoudestSoundHint

table sound.GetLoudestSoundHint( number types, Vector pos )

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 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.

Special Pages


Wikis

?

Render Time: 21ms

DB GetPage 3
Generate Html 5
SaveChanges (1) 5
Render Body 0
Render Sidebar 6