Garry's Mod Wiki

Garry's Mod Wiki

  boolean GM:GravGunPickupAllowed( Player ply, Entity ent )

Description

Called every tick to poll whether a player is allowed to pick up an entity with the gravity gun or not.

See GM:AllowPlayerPickup for the +USE pickup variant.
See GM:PhysgunPickup for the Physics Gun pickup variant.

Calls ENTITY:GravGunPickupAllowed on the entity being hovered every frame in Sandbox-derived gamemodes.

Arguments

1 Player ply
The player wielding the gravity gun
2 Entity ent
The entity the player is attempting to pick up

Returns

1 boolean
Return true to allow entity pick up

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...