how to add an object property: indestructible?

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
User avatar
WIZ4
Fast Inserter
Fast Inserter
Posts: 209
Joined: Thu Apr 07, 2016 1:36 pm
Contact:

how to add an object property: indestructible?

Post by WIZ4 »

How to Use the console command to add an object property: indestructible? How this is done in the Map Editor
Screenshot_1.png
Screenshot_1.png (153.84 KiB) Viewed 1949 times
My native language is russian. Sorry if my messages are difficult to read.
User avatar
Adil
Filter Inserter
Filter Inserter
Posts: 945
Joined: Fri Aug 15, 2014 8:36 pm
Contact:

Re: how to add an object property: indestructible?

Post by Adil »

Code: Select all

entity.destructible=false
Entity is a reference to an object you want to change, you get one by using find_entity() functions for example. Or by

Code: Select all

entity=game.player.selected
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.
User avatar
WIZ4
Fast Inserter
Fast Inserter
Posts: 209
Joined: Thu Apr 07, 2016 1:36 pm
Contact:

Re: how to add an object property: indestructible?

Post by WIZ4 »

Adil wrote:

Code: Select all

entity.destructible=false
Entity is a reference to an object you want to change, you get one by using find_entity() functions for example. Or by

Code: Select all

entity=game.player.selected
Thank you!
My native language is russian. Sorry if my messages are difficult to read.
Post Reply

Return to “Gameplay Help”