Garry's Mod Wiki

GM:OnPhysgunPickup

GM:OnPhysgunPickup

  GM:OnPhysgunPickup( Player ply, Entity ent )

Description

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.

Arguments

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

Special Pages


Wikis

?

Render Time: 66ms

DB GetPage 45
Generate Html 6
SaveChanges (1) 6
Render Body 0
Render Sidebar 7