Steps to reproduce:
Place a car
(Save your character if you want to go back)
Code: Select all
/c CHARACTER=game.player.character
Code: Select all
/c NEW_PLAYER=game.player.surface.create_entity{name="player", position=game.player.position}
Swap to the NEW_PLAYER
Code: Select all
/c game.player.character = NEW_PLAYER
When testing like this the original character turns blue while swapped, but even if you swap back it will still be outside of the car.