ok so setup a file with all the functions you want and put
return
at the end
then whenever you want to access all the functions just do this
dofile('filewithallthecoolfunctions.lua')
example of a cool file with functions
local timers = {}
function ezTimer(tag, timer, callback)
table.insert(timers,{tag, callback})
runTimer(tag, timer)
end
function onTimerCompleted(tag)
for k,v in pairs(timers) do
if v[1] == tag then
v[2]()
end
end
end
function stupidIdiot()
return 'ahadfglhjkfajkgsd'
end
return;
now in a different script file you can call it like this:::
function onCreate()
dofile('filewithcoolfunctions.lua')
ezTimer(nil, 1.5, function()
debugPrint(stupidIdiot())
end)
end
quite helpful, thanks