Page 1 of 1

How can I make a sandbox scenario with the map editor?

Posted: Tue Mar 18, 2014 11:47 pm
by Madara Uchiha
I tried opening the sandbox map as template, I tried removing the player (by placing water on top of it), I tried fiddling with the options.

I couldn't find it. How can I make a god-mode like sandbox scenario with the map editor. Can I?

Re: How can I make a sandbox scenario with the map editor?

Posted: Wed Mar 19, 2014 9:34 am
by Madara Uchiha
Found it. Edit the "player" entity (press T with mouse on it) and uncheck all of the difficulties. That'll make the player not appear when starting a game, and you in god mode :)

Re: How can I make a sandbox scenario with the map editor?

Posted: Wed Mar 19, 2014 10:03 am
by slpwnd
Actually that is not intended behavior, but it is nice that it works :D For the god mode game (custom scenarios -> sandbox) we disconnect the player from the script on creation.

Code: Select all

game.oninit(function()
  local character = game.player.character
  if character then character.destroy() end
  game.player.setcontroller{type=defines.controllers.god}
end)

Re: How can I make a sandbox scenario with the map editor?

Posted: Wed Dec 10, 2014 6:11 pm
by Madara Uchiha
Bump. This no longer seems to work. How can I do this in the newer versions?