Page 1 of 1

Character spite loss

Posted: Tue Apr 12, 2016 1:50 pm
by toadman90
So I was messing around with a map in scenario editor. I have several hours invested in this thing. I went to start the map to see if it was functioning and it was in freeplay mode no character sprite. It was in normal mode so I must have deleted my character sprite somewhere in my map edits. Is there a way to make a new sprite using commands? I don't see an option in the entities tab on the map editor.

Re: Character spite loss

Posted: Tue Apr 12, 2016 1:56 pm
by prg

Code: Select all

/c game.local_player.character=game.local_player.surface.create_entity{name="player", position={0,0}, force=game.local_player.force}