multi/test.lua
Ryan 62aa9120a8 Fixed a typo in the init.lua
Typo caused the library to crash during load due to forgetting the ".." in the getVersion function
2017-06-14 15:11:57 -04:00

9 lines
400 B
Lua

package.path="?/init.lua;"..package.path
require("multi.all")
process=multi:newProcess() -- this can also load a file, to keep things really organized, I will show a simple example first then show the same thing being done within another file.
process:newTLoop(function(self)
print("Looping every second...")
end,1)
process:Start() -- starts the process
multi:mainloop() -- start the main runner