Garry's Mod Wiki

GM:GravGunOnPickedUp

  GM:GravGunOnPickedUp( Player ply, Entity ent )

Description

Called when an entity is picked up by a gravity gun.

See GM:OnPlayerPhysicsPickup for the player +use pickup variant.
See GM:OnPhysgunPickup for the Physics Gun pickup variant.

Arguments

1 Player ply
The player wielding the gravity gun
2 Entity ent
The entity that has been picked up by the gravity gun