Kuxynator's Populoutorium


A god-game inspired Factorio mod with divine control mechanics.

Overhaul
5 months ago
2.0
242
Character

g Uninstallation

5 months ago

Uninstallation = game.player.character=game.player.selected thats all :)
nothing special to iplemement here :)))

5 months ago
(updated 5 months ago)

this is not an universal solution
only works if you point to an unused character standing around

but maybe this:

game.player.set_controller{type=defines.controllers.character, character=game.player.surface.create_entity{name="character", position=game.player.position, force=game.player.force}}
5 months ago

not best solution, my point is to take control on previously used character, instaead of creating new one

New response