God mode off? [Solved]
God mode off? [Solved]
Hi, I was playing in a world with cheat enabled to try some design. I activated god mode without thinking too much, but now my character is invisible.
How do I make the character reappear and/or turn off god mode?
How do I make the character reappear and/or turn off god mode?
Last edited by DiVi最強 on Tue Dec 08, 2020 8:53 pm, edited 1 time in total.
Re: God mode off?
There are 10 types of people: those who get this joke and those who don't.
Re: God mode off?
and /c game.player.create_character()
Re: God mode off?
How did you enable "god-mode"? What exact command did you use?
Re: God mode off?
Ah, in that case you would want "/c game.player.create_character()" (as found on the wiki). The command above would be if you had used the command "/cheat".
There are 10 types of people: those who get this joke and those who don't.
Re: God mode off?
- eradicator
- Smart Inserter
- Posts: 5206
- Joined: Tue Jul 12, 2016 9:03 am
- Contact:
Re: God mode off?
Code: Select all
/c local p = game.player p.set_controller{type=defines.controllers.character,character=p.surface.create_entity{name='character',force=p.force,position=p.position}}
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Re: God mode off?
Ok, thank this worked! My old character reappeared and I became a new one. I'll live the old one there and play with the new one.eradicator wrote: ↑Tue Dec 08, 2020 8:39 pmYour original character is probably still standing around somewhere though if you didn't kill it with fire :p.Code: Select all
/c local p = game.player p.set_controller{type=defines.controllers.character,character=p.surface.create_entity{name='character',force=p.force,position=p.position}}
- eradicator
- Smart Inserter
- Posts: 5206
- Joined: Tue Jul 12, 2016 9:03 am
- Contact:
Re: God mode off?
You can just shoot + loot it.
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Re: God mode off?
I did it in the end, the only thing is it was annoying having to set all the logistic again.