numpad.Activate

From GMod Wiki

Jump to: navigation, search
Function
Syntax numpad.Activate( Player Activater, _, { String Key }, Number OwningPlayerIndex )
Where is this used?
Description:
Activates numpad key owned by the player referred to in the last parameter.
Returns: nil
Part of Library: numpad
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Numpad.Activate]Numpad.Activate [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionThis will press and hold #5 on the player's numpad that owns the entity.
Used onNewerServer.png
Code
function ENT:Use(player)
    numpad.Activate(self:GetOwner(), _, { '5' }, self:GetPlayerIndex())
end
OutputN/A


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox