force.spawn_location = { x, y }

Post Reply
User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5151
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

force.spawn_location = { x, y }

Post by Klonan »

Its such a pain trying to code around the fact everybody spawns/respawns at 0,0, it would be super helpful if we could set seperate spawn co-ordinates for each force! For PvP this would be incredibly useful

For example, for 2 teams, i could say
game.forces.blue.spawn_location = {100, 50}
game.forces.red.spawn_location = {-100, -50}

It could also be useful for a variety of scenario related uses, such as checkpoints!

Oxyd
Former Staff
Former Staff
Posts: 1428
Joined: Thu May 07, 2015 8:42 am
Contact:

Re: force.spawn_location = { x, y }

Post by Oxyd »

Ah, yes, indeed. I've been wanting to do this for quite a while now, I just haven't got around to it yet.

Not sure I get the checkpoints idea, though.

Edit: Oh, I get it now. You'll have a script set the spawn point to some checkpoint once a condition is fulfilled.

Post Reply

Return to “Implemented mod requests”