numpad.OnUp
From GMod Wiki
Revision as of 13:20, 26 October 2009 by Unrealomega (Talk | contribs)
Function | |
Syntax |
numpad.OnUp( Player ply, String key, String name, ... ) Where is this used? |
Description: | |
Adds a function to call when a player releases a key on the number pad. | |
Returns: | Number The index of the "impulse" that was added. |
Part of Library: | numpad |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Numpad.OnUp]Numpad.OnUp [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | N/A | ||
---|---|---|---|
Used on | |||
Code |
| ||
Output | N/A |
Additional Notes
- (Player ) ply - The Player object who will be able to trigger this impulse. This is usually the owner of the SWEP, STOOL or SENT that called numpad.OnUp.
- (String ) key - The literal keypress, or, in the case of special keys, a number constant defined in the garrysmod\lua\includes\enum\keys.lua file.
- (String ) name - The name of the function to call. This has been previously registered with the numpad.Register function.
- (...) - Variable argument list (optional). The arguments you pass here will be passed as arguments to the registered function. In addition, the numerical player index (as returned from a call to Player.UniqueID) will be appended as the final argument.