Event id for key typed events. Calls the KeyTypeCallback.
-- Create a functionlocal keyType = function(keyCode) osrs.print("Key Type: " .. tostring(keyCode))end-- Subscribe to the functionosrs.Events.subscribe(keyType, osrs.Events.KEY_TYPE) Copy
-- Create a functionlocal keyType = function(keyCode) osrs.print("Key Type: " .. tostring(keyCode))end-- Subscribe to the functionosrs.Events.subscribe(keyType, osrs.Events.KEY_TYPE)
Event id for key typed events. Calls the KeyTypeCallback.
Example