No pause on the end-game "no satellite" message
Posted: Fri Jun 17, 2016 9:59 pm
It would be great for mods using rocket-silo in an alternative way (ion cannon, cargo rockets), to avoid the blocking "no satellite" message in solo play.
For memory, the map code is :
It would be great to suppress the solo-play test and always use the player.print non-blocking message.
For memory, the map code is :
Code: Select all
script.on_event(defines.events.on_rocket_launched, function(event)
(...)
if (#game.players <= 1) then
game.show_message_dialog{text = {"gui-rocket-silo.rocket-launched-without-satellite"}}
else
for index, player in pairs(force.players) do
player.print({"gui-rocket-silo.rocket-launched-without-satellite"})
end
end