Garry's Mod Wiki

Garry's Mod Wiki

  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

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...