How can I run a function from another file on same directory?
Example:
file1:
function sleep(n)
local t = os.clock()
while os.clock() - t <= n do
-- nothing
end
end
file2:
dofile('/barboszalib.lua')
function DoSomething(target)
print(target + 3)
end
while true do
DoSomething(4)
barboszalib.sleep(5)
end