GM:GravGunPickupAllowed

From Garry's Mod
Jump to: navigation, search
 GM:GravGunPickupAllowed( )

Contents

Description

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

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

Arguments

Player ply

The player wielding the gravity gun

Arguments

Entity ent

The entity the player is attempting to pick up

Returns

boolean

Return true to allow entity pick up
Personal tools
Navigation