Revision Difference
Entity:SetShouldPlayPickupSound#514451
<function name="SetShouldPlayPickupSound" parent="Entity" type="classfunc">⤶
<description>Sets whether or not the entity should make a physics contact sound when it's been picked up by a player.</description>⤶
<realm>Shared</realm>⤶
<args>⤶
<arg name="playsound" type="boolean" default="false">True to play the pickup sound, false otherwise.</arg>⤶
</args>⤶
</function>⤶
⤶
<example>⤶
<description>Enable pickup sound on all entities.</description>⤶
<code>⤶
function GM:OnEntityCreated(ent)⤶
ent:SetShouldPlayPickupSound(true)⤶
end⤶
</code>⤶
⤶
</example>