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...")
 
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 an {{EnumLink|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)
 
}}
 
}}

Revision as of 02:40, 30 March 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 an Template:EnumLink

Arguments

boolean isButton

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