numpad.OnDown

From Garry's Mod
Jump to: navigation, search
 numpad.OnDown( )

Contents

Description

Calls a function registered with numpad.Register when a player presses specified key.

See for key released action: numpad.OnUp

Arguments

Player ply

The player whose numpad should be watched

Arguments

number key

The key, corresponding to KEY_ Enums

Arguments

string name

The name of the function to run, corresponding with the one used in numpad.Register

Arguments

vararg ...

Arguments to pass to the function passed to numpad.Register.

Returns

number

The impulse ID
Personal tools
Navigation