TOOL:LeftClick
From GMod Wiki
Event Hook | |
Hook Name | LeftClick |
Syntax | TOOL:LeftClick( TraceRes tr ) |
Description | Called when the user left clicks. |
Returns | Nil |
Lua State | |
BBCode | [b][url=wiki.garrysmod.com/?title=TOOL:LeftClick]TOOL:LeftClick [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- Returning true shows the tracer beam, returning false hides it.
- Doesn't seem to be called on the client side in single-player mode, for whatever reason.