remove start delay of 3 seconds when starting
This commit is contained in:
parent
82b7af6876
commit
c94aace4d2
1
init.lua
1
init.lua
|
@ -42,6 +42,7 @@ arena_lib.register_minigame("the_bridge", {
|
||||||
temp_properties = {
|
temp_properties = {
|
||||||
finished = false,
|
finished = false,
|
||||||
scoring = false,
|
scoring = false,
|
||||||
|
setup = false,
|
||||||
},
|
},
|
||||||
|
|
||||||
in_game_physics = {
|
in_game_physics = {
|
||||||
|
|
|
@ -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
|
after_goal(arena) --gives all players their items and teleports them to spawners
|
||||||
|
|
||||||
send_message(arena,S("GO!"))
|
send_message(arena,S("GO!"))
|
||||||
|
arena.setup = true
|
||||||
end)
|
end)
|
||||||
|
|
||||||
arena_lib.on_enable("the_bridge", function(arena, p_name)
|
arena_lib.on_enable("the_bridge", function(arena, p_name)
|
||||||
|
|
|
@ -43,6 +43,7 @@ function after_goal(arena) --global because its called once outside of this file
|
||||||
gain = 2.0,
|
gain = 2.0,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
if not arena.setup then return end
|
||||||
time = os.clock()
|
time = os.clock()
|
||||||
while (os.clock() < time +3) do end
|
while (os.clock() < time +3) do end
|
||||||
arena.scoring = false
|
arena.scoring = false
|
||||||
|
|
Loading…
Reference in New Issue