Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- objects = [[
- <objects>
- <objects>
- ]]
- local args = { ... }
- local callType
- local objectID
- local systemInfo
- -- Gets called when an object with type "Custom"
- -- needs to be displayed.
- function showObject()
- end
- -- Gets called when a button or a custom object
- -- with canClick attribute gets clicked.
- function callFunction()
- end
- function main()
- if (#args == 3) then
- callType = args[1]
- objectID = args[2]
- systemInfo = textutils.unserialize(args[3])
- if (callType == "Show") then
- showObject()
- elseif (callType == "Click") then
- callFunction()
- end
- end
- end
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement