TOOL:LeftClick

From Garry's Mod
Jump to: navigation, search
 TOOL:LeftClick( )

Description

Called when the user left clicks with the tool

NOTE This hook is predicted. This means that in singleplayer, it will not be called in the Client realm.

Arguments

table tr

A trace from users eyes to wherever he aims at. See TraceResult structure

Returns

boolean

Return true to make the tool gun beam and play fire animations, false otherwise
Personal tools
Navigation