Garry's Mod Wiki


  GM:OnPlayerPhysicsPickup( Player ply, Entity ent )


Called when a player +use pickups up an entity. This will be called after the entity passes though GM:AllowPlayerPickup.

See GM:GravGunOnPickedUp for the Gravity Gun pickup variant.
See GM:OnPhysgunPickup for the Physics Gun pickup variant.


1 Player ply
The player that picked up the object
2 Entity ent
The object that was picked up.