GM/PlayerButtonDown

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Once again, it works fine with all buttons)
m
 
Line 11: Line 11:
 
{{Arg
 
{{Arg
 
|type=number
 
|type=number
|name=key
+
|name=button
|desc=The key, see {{Enum|BUTTON_CODE}}
+
|desc=The button, see {{Enum|BUTTON_CODE}}
 
}}
 
}}

Latest revision as of 13:35, 24 April 2017

 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 pressed the button

Arguments

number button

The button, see BUTTON_CODE_ Enums
Personal tools
Navigation