GM/GravGunPunt

From Garry's Mod
Revision as of 16:37, 15 January 2018 by Robotboy655 (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 GM:GravGunPunt( )

Contents

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 gamemmodes.

Arguments

Player ply

The player wielding the gravity gun

Arguments

Entity ent

The entity the player is attempting to punt

Returns

boolean

Return true to allow and false to disallow.
Personal tools
Navigation