Garry's Mod Wiki

Revision Difference

sound.EmitHint#561769

<function name="EmitHint" parent="sound" type="libraryfunc"> <description>Emits a sound hint to the game elements to react to, for example to repel or attract antlions.</description> <realm>Server</realm> <added>2020.10.14</added> <args> <arg name="hint" type="number">The hint to emit. See <page>Enums/SOUND</page></arg> <arg name="pos" type="Vector">The position to emit the hint at</arg> <arg name="volume" type="number">The volume or radius of the hint</arg> <arg name="duration" type="number">The duration of the hint in seconds</arg> <arg name="owner" type="Entity" default="NULL"></arg>⤶ <arg name="owner" type="Entity" default="NULL">If set, will limit the sound hint to one instance per hint type,⤶ associated with this entity. I.e. an Antlion Thumper can only create one sound hint instance to repel antlions.</arg>⤶ </args> </function>