GM/PlayerButtonDown

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Whoops,forgot about these)
(enum moved)
Line 3: Line 3:
 
|Realm=Shared
 
|Realm=Shared
 
|Predicted=Yes
 
|Predicted=Yes
|Name=PlayerButtonDown
 
|Parent=GM
 
 
}}
 
}}
 
{{Arg
 
{{Arg
Line 14: Line 12:
 
|type=number
 
|type=number
 
|name=button
 
|name=button
|desc=Button code, see {{Enum|BUTTON}}
+
|desc=Button code, see {{Enum|BUTTON_CODE}}
 
}}
 
}}

Revision as of 20:37, 27 November 2016

 GM:PlayerButtonDown( )

Description

Called when a player presses a button.

NOTE

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

Arguments

Player ply

Player who has pressed button

Arguments

number button

Button code, see BUTTON_CODE_ Enums
Personal tools
Navigation