numpad/Deactivate

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Created page with "{{Func |Name=Deactivate |Parent=numpad |Description=Deactivates numpad key owned by the player |Realm=Server |IsClass=No }} {{Arg |type=Player |name=ply |desc=The pla...")
 
 
(One intermediate revision by one user not shown)
Line 14: Line 14:
 
|type=number
 
|type=number
 
|name=key
 
|name=key
|desc=The key to press, corresponding to an {{EnumLink| KEY}}
+
|desc=The key to press, corresponding to {{Enum|KEY}}
 
}}
 
}}
 
{{Arg
 
{{Arg
 
|type=boolean
 
|type=boolean
 
|name=isButton
 
|name=isButton
|desc=Should this keypress pretend to be a from a gmod_button? (causes {{LibraryFunction| numpad| FromButton}} to return true)
+
|desc=Should this keypress pretend to be a from a gmod_button? (causes {{LibraryFunction|numpad|FromButton}} to return true)
 
}}
 
}}

Latest revision as of 07:44, 5 December 2013

 numpad.Deactivate( )

Contents

Description

Deactivates numpad key owned by the player

Arguments

Player ply

The player whose numpad should be simulated

Arguments

number key

The key to press, corresponding to KEY_ Enums

Arguments

boolean isButton

Should this keypress pretend to be a from a gmod_button? (causes numpad.FromButton to return true)
Personal tools
Navigation