I want to make my car indestructible with cheats, is there some way?

Place to get help with not working mods / modding interface.
Draguvcho
Manual Inserter
Manual Inserter
Posts: 1
Joined: Sat Sep 03, 2022 2:18 pm

I want to make my car indestructible with cheats, is there some way?

Post by Draguvcho »

Hello, I am new in this forum. This is my first post that I do.
I come with a question that I hope can be resolved.

I was experimenting with the Factorio console and cheats, I was looking for how to make my car indestructible like you can do with the player, for example:

/c game.player.character.destructible = false

Which is like God mode without being invisible. But I want to do the same with my car because I want to have fun killing biters.
Is there a way? I await the answer.

Thanks <3
User avatar
Silari
Filter Inserter
Filter Inserter
Posts: 581
Joined: Sat Jan 27, 2018 10:04 pm
Contact:

Re: I want to make my car indestructible with cheats, is there some way?

Post by Silari »

Hover over the car with the mouse so it's highlighted and use the console command

Code: Select all

/c game.player.selected.destructible = false
It's basically the same thing, but you're telling the game that you want the player's currently selected entity to not be destructible, instead of their character. That's why you need to do it while hovering the mouse over the car. It should work for any entity in the game.
mmmPI
Smart Inserter
Smart Inserter
Posts: 4575
Joined: Mon Jun 20, 2016 6:10 pm
Contact:

Re: I want to make my car indestructible with cheats, is there some way?

Post by mmmPI »

I didn't know there was a command for this, you can also make your car indestructible when in the /editor mode, clicking on your car would open an additionnal pannel on which you can tick a box to make it indestructible.
Post Reply

Return to “Modding help”