GM/PlayerButtonDown

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
m (grammar change)
Line 7: Line 7:
 
|type=Player
 
|type=Player
 
|name=ply
 
|name=ply
|desc=Player who has pressed key
+
|desc=Player who pressed the key
 
}}
 
}}
 
{{Arg
 
{{Arg

Revision as of 19:01, 17 April 2017

 GM:PlayerButtonDown( )

Description

Called when a player presses a key.

NOTE

This hook is predicted. This means that in singleplayer, it will not be called in the Client realm.

Arguments

Player ply

Player who pressed the key

Arguments

number key

The key, see KEY_ Enums
Personal tools
Navigation