numpad/Register

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
Line 18: Line 18:
 
Arguments are:<br>
 
Arguments are:<br>
 
{{FuncArg|Player|ply|The player who pressed the button}}<br>
 
{{FuncArg|Player|ply|The player who pressed the button}}<br>
{{FuncArg|vararg|...|The 4th and all subsequent arguments passed to {{LibraryFunction|numpad|OnDown}} and/or {{LibraryFunction|numpad|OnUp}}}}<br>
+
{{FuncArg|vararg|...|The 4th and all subsequent arguments passed from {{LibraryFunction|numpad|OnDown}} and/or {{LibraryFunction|numpad|OnUp}}}}<br>
 
<br>
 
<br>
 
 
}}
 
}}

Revision as of 18:52, 17 March 2015

 numpad.Register( )

Description

Registers a numpad library action for use with numpad.OnDown and numpad.OnUp

Arguments

string id

The unique id of your action.

Arguments

function func

The function to be executed.

Arguments are:
Player ply - The player who pressed the button
vararg ... - The 4th and all subsequent arguments passed from numpad.OnDown and/or numpad.OnUp


Personal tools
Navigation