NumpadTriggerDevice.GetKeyNumber
Skip to content
mnscript
number NumpadTriggerDevice.GetKeyNumber() 

Description ​

Gets the trigger's key number (See https://wiki.facepunch.com/gmod/Enums/KEY)

Returns ​

number - The trigger's key number

Example ​

msc
using Device;

// Finds a numpad trigger with the name "My Numpad Trigger" and gets the key
NumpadTriggerDevice device = Device.FindNumpadTrigger("My Numpad Trigger");
number key = device.GetKeyNumber();