Search found 2 matches

by Lerrrtaste
Wed Mar 23, 2016 12:14 pm
Forum: Ideas and Requests For Mods
Topic: Mod to turn peaceful_mode OFF after X minutes?
Replies: 11
Views: 4063

Re: Mod to turn peaceful_mode OFF after X minutes?

function print_all(text)
for _, v in pairs(game.players) do v.print(text) end
end

script.on_init(function()
game.peaceful_mode = true
game.forces.enemy.kill_all_units()
end)

script.on_event(defines.events.on_tick, function(event)
if event.tick == 60 * 60 * 120 then print_all("warning1 ...
by Lerrrtaste
Wed Mar 23, 2016 12:12 pm
Forum: Ideas and Requests For Mods
Topic: Mod to turn peaceful_mode OFF after X minutes?
Replies: 11
Views: 4063

Re: Mod to turn peaceful_mode OFF after X minutes?

+++ - Supporting that!

Another Suggestion by myself is to add a command to activate/deactivate the peacful mode manually.

Go to advanced search