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.

Page Links


Special Pages


Wikis

?

Render Time: 36ms

DB GetPage 3
Generate Html 8
SaveChanges (1) 11
Render Body 0
Render Sidebar 12