Garry's Mod Wiki

Entity:SetShouldPlayPickupSound

Entity:SetShouldPlayPickupSound( boolean playsound = false )

Description

Sets whether or not the entity should make a physics contact sound when it's been picked up by a player.

Arguments

1 boolean playsound = false
True to play the pickup sound, false otherwise.

Example

Enable pickup sound on all entities.

function GM:OnEntityCreated(ent) ent:SetShouldPlayPickupSound(true) end

Page Links


Special Pages


Wikis

?

Render Time: 37ms

DB GetPage 4
Generate Html 3
SaveChanges (1) 9
Render Body 0
Render Sidebar 13