Garry's Mod Wiki

TOOL:RightClick

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

Description

Called when the user right clicks with the tool.

Arguments

1 table tr
A trace from users eyes to wherever he aims at. See Structures/TraceResult

Returns

1 boolean
Return true to make the tool gun beam and play fire animations, false otherwise

Page Links


Special Pages


Wikis

?

Render Time: 34ms

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