GlobalEvents
onStartUp()
function onStartup()
print("There are " ..#Game.getHouses().. " houses registered to this map")
end<globalevent type="startup" name="ServerStartup" script="startup.lua" />onShutdown()
function onShutdown()
for index, player in pairs(Game.getPlayers()) do
player:save()
end
endonRecord(current, old)
onTime()
onThink()
Last updated
Was this helpful?