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?
I disabled cheat mode but nothing change. If I also use this command, it does give me an error "Can't set character for non player with non god controller"
I think the character is there but the god mode is enabled.
Re: God mode off?
How did you enable "god-mode"? What exact command did you use?
Re: God mode off?
/c game.player.character=nil found on the wikiLoewchen wrote: Tue Dec 08, 2020 5:25 pm How did you enable "god-mode"? What exact command did you use?
I likely did some random command without been sure of what it does

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?
I tried this one but i have the same error I mentioned before.Jap2.0 wrote: Tue Dec 08, 2020 7:47 pmAh, 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".
- eradicator
- Smart Inserter
- Posts: 5211
- 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: 5211
- Joined: Tue Jul 12, 2016 9:03 am
- Contact:
Re: God mode off?
You can just shoot + loot it.DiVi最強 wrote: Tue Dec 08, 2020 8:53 pm 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.
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.eradicator wrote: Tue Dec 08, 2020 9:28 pmYou can just shoot + loot it.DiVi最強 wrote: Tue Dec 08, 2020 8:53 pm 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.