GM/PlayerButtonDown

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
Line 2: Line 2:
 
|Name=PlayerButtonDown
 
|Name=PlayerButtonDown
 
|Parent=GM
 
|Parent=GM
|Description=Called when a player presses a key. Key codes can be found at [[Enums/KEY]]
+
|Description=Called when a player presses a button. Button codes can be found at [[Enums/KEY]] and [[Enums/Mouse]]
 
|Realm=Shared
 
|Realm=Shared
 
}}
 
}}
Line 12: Line 12:
 
{{Arg
 
{{Arg
 
|type=number
 
|type=number
|name=key
+
|name=button
|desc=Key code
+
|desc=Button code
 
}}
 
}}

Revision as of 21:05, 3 June 2013

 GM:PlayerButtonDown( )

Description

Called when a player presses a button. Button codes can be found at Enums/KEY and Enums/Mouse

Arguments

Player ply

Player who has pressed button

Arguments

number button

Button code
Personal tools
Navigation