GM:FindUseEntity

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

Contents

Description

This hook polls the entity the player use action should be applied to. The default behavior of this hook is on CBasePlayer::FindUseEntity().

Arguments

Player ply

The player who initiated the use action.

Arguments

Entity defaultEnt

The entity that was chosen by the engine.

Returns

Entity

The entity to use instead of default entity
Personal tools
Navigation