Gamemode.CallScreenClickHook
From GMod Wiki
Event Hook | |
Hook Name | CallScreenClickHook |
Syntax | GM:CallScreenClickHook( Boolean Click, Integer mousecode, Vector AimVector ) |
Description | Called when the player clicks on the screen with the mouse |
Returns | Nil |
Lua State | |
BBCode | [b][url=wiki.garrysmod.com/?title=Gamemode.CallScreenClickHook]Gamemode.CallScreenClickHook [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- When mouse is pressed down, argument click is true, and when unclicked, click is false.
- This hook gets called both when mouse is pressed and released.
- Best example of this is when in the context menu (C) in sandbox.