numpad/Register

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(This example is gibberish)
(Added arguments for the func.)
Line 15: Line 15:
 
|name=func
 
|name=func
 
|desc=The function to be executed.
 
|desc=The function to be executed.
 +
 +
func's arguments are:
 +
Player,
 +
Ent,
 +
OnOff
 
}}
 
}}

Revision as of 00:58, 22 November 2014

 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.

func's arguments are: Player, Ent,

OnOff
Personal tools
Navigation