Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- a simple Event writer
- written from scratch by CreeperGoBoom
- for users of Computercraft
- this program will write to screen the vars passed by any event from os.pullEvent
- which will read like:
- event_name is var 1
- something is var 2
- etc
- ]]
- while true do
- event={os.pullEvent()}
- for i = 1,6 do -- most event have 3 to 5 vars, remembering the first var is always the name
- if event[i]~=nil then
- print(event[i].." is var "..tostring(i))
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment