main.lua

Your mod file should be named main.lua and be in same folder as data.salio.

You must include these functions in your file:

main.lua
function init()

end

function update()

end

function getKey(id)

end

function onDeath()

end

Their use is described on the next page.

Last updated

Was this helpful?