Gamemode.KeyRelease
From GMod Wiki
Event Hook | |
Hook Name | KeyRelease |
Syntax | GM:KeyRelease( Player player, (IN_KEYS) key ) |
Description | Runs when a key has been released. |
Returns | Nil |
Lua State | |
BBCode | [b][url=wiki.garrysmod.com/?title=Gamemode.KeyRelease]Gamemode.KeyRelease [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
Additional notes
They key returned is shown as an integer. Check the IN_KEYS to see what the int corresponds to in actions terms. Example: (1, being IN_ATTACK, defaulting to left-click)