remove start delay of 3 seconds when starting

This commit is contained in:
chmodsayshello 2022-10-22 18:40:11 +00:00
parent 82b7af6876
commit c94aace4d2
3 changed files with 3 additions and 0 deletions

View File

@ -42,6 +42,7 @@ arena_lib.register_minigame("the_bridge", {
temp_properties = {
finished = false,
scoring = false,
setup = false,
},
in_game_physics = {

View File

@ -45,6 +45,7 @@ arena_lib.on_load("the_bridge", function(arena)
after_goal(arena) --gives all players their items and teleports them to spawners
send_message(arena,S("GO!"))
arena.setup = true
end)
arena_lib.on_enable("the_bridge", function(arena, p_name)

View File

@ -43,6 +43,7 @@ function after_goal(arena) --global because its called once outside of this file
gain = 2.0,
})
end
if not arena.setup then return end
time = os.clock()
while (os.clock() < time +3) do end
arena.scoring = false