Garry's Mod Wiki


  GM:OnPhysgunPickup( Player ply, Entity ent )


Called to when a player has successfully picked up an entity with their Physics Gun.

Not to be confused with GM:PhysgunPickup which is called multiple times to ask if the player should be able to pick up an entity.

See GM:GravGunOnPickedUp for the Gravity Gun pickup variant.
See GM:OnPlayerPhysicsPickup for the player +use pickup variant.


1 Player ply
The player that has picked up something using the physics gun.
2 Entity ent
The entity that was picked up.