Player.KeyPressed
From GMod Wiki
| Function | |
| Syntax | Player:KeyPressed( Number key ) |
| Description: | |
| Gets whether the key was pressed. Only works once for each press of the key. | |
| Returns: | boolean |
| In Object: | Player |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Player.KeyPressed]Player.KeyPressed [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
Additional Notes
- See IN_KEYS for keys to use in this function
- Seems that this function is only shared singleplayer (Bug?).