Garry's Mod Wiki

GM:GravGunPunt

  boolean GM:GravGunPunt( Player ply, Entity ent )

Description

Called when an entity is about to be punted with the gravity gun (primary fire).

By default this function makes ENTITY:GravGunPunt work in Sandbox derived gamemodes.

Arguments

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

Returns

1 boolean
Return true to allow and false to disallow.