I set up a modded multiplayer server for some friends... and found out the hard way after a few hours of playing... if you die and go back to the default respawn... you are instantly killed by spitters.
I have searched and searched... and I have no idea how to do:
A: Move the spawn point
or
B: Protect the current spawn point
Any help would be great here.
Multiplayer Respawn Death loop
Re: Multiplayer Respawn Death loop
A: Setting a spawn point:Erelaszun wrote:I set up a modded multiplayer server for some friends... and found out the hard way after a few hours of playing... if you die and go back to the default respawn... you are instantly killed by spitters.
I have searched and searched... and I have no idea how to do:
A: Move the spawn point
or
B: Protect the current spawn point
Any help would be great here.
Code: Select all
/c game.local_player.force.set_spawn_position({500,500}, game.local_player.surface)
Code: Select all
/c
for x = -4,4 do
for y = -4,4 do
game.local_player.surface.create_entity{name = "distractor", position = {x*3,y*3}, force = game.local_player.force}
end
end
Code: Select all
/c
for x = -4,4 do
for y = -4,4 do
local turret = game.local_player.surface.create_entity{name = "gun-turret", position = {x*6+2,y*6+2}, force = game.local_player.force}
turret.insert{name = "piercing-bullet-magazine", count = 25}
end
end
Code: Select all
/c
for x = -16,16 do
for y = -16,16 do
game.local_player.surface.create_entity{name = "land-mine", position = {x*4,y*4}, force = game.local_player.force}
end
end
Re: Multiplayer Respawn Death loop
Thank you for the quick reply Klonan.