Posted 28 December 2012 - 09:08 PM
I'm looking for a way for a API to detect when the computer or turtle loads it. This way if something needs to happen for the API to be ready, an onload() function would make it ready.
I was thinking of using the following code:
I just need to know if this would work I already know that the function created in this example cannot be ran outside of the API internally.
I was thinking of using the following code:
local function onload()
-- some lines of code to be run
-- to set up API when its loaded
end
onload()
I just need to know if this would work I already know that the function created in this example cannot be ran outside of the API internally.
Edited on 28 December 2012 - 08:09 PM