GM/PlayerButtonDown

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
m
m
Line 7: Line 7:
 
{{Arg
 
{{Arg
 
|type=Player
 
|type=Player
|name=ply
+
|name=player
 
|desc=Player who has pressed button
 
|desc=Player who has pressed button
 
}}
 
}}
 
{{Arg
 
{{Arg
 
|type=number
 
|type=number
|name=button
+
|name=iButton
 
|desc=Button code
 
|desc=Button code
 
}}
 
}}

Revision as of 23:41, 4 November 2013

 GM:PlayerButtonDown( )

Description

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

Arguments

Player player

Player who has pressed button

Arguments

number iButton

Button code
Personal tools
Navigation