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: 31ms

DB GetPage 4
Generate Html 6
SaveChanges (1) 8
Render Body 0
Render Sidebar 11