Page 1 of 1
I lost Player in MapEditor
Posted: Sat May 07, 2016 11:43 pm
by KN5
I delete player in MapEditor.
Not be able to place the player again?
Now Can't play Scenario becouse Not player entities ~ error.
How do I deal this case?
Re: I lost Player in MapEditor
Posted: Sun May 08, 2016 10:16 am
by Kayanor
As far as I know you only have to place that red flag somewhere, the player entity will spwan there.
Re: I lost Player in MapEditor
Posted: Sun May 08, 2016 4:35 pm
by KN5
Thanks Reply.
I try Replace Red flag somewhere in MapEditor.
But not Respawn Player entity that place.
1.Open the savedate(It has lost player entity date)in MapEditor.
2.Select a RedFlag and replace somewher use the Right click.
3.SAVE the game.
4.Start Custom scenario for save the 3. (↑)
5.No one there.
I wrong use of the Red Flag ?
Re: I lost Player in MapEditor
Posted: Sun May 08, 2016 5:14 pm
by prg
Start the game and try
Code: Select all
/c game.local_player.character=game.local_player.surface.create_entity{position=game.local_player.surface.find_non_colliding_position("player", {0,0}, 0, .1), name="player", force=game.local_player.force}