Console page, set destructible = false
Posted: Thu Dec 15, 2022 11:33 pm
I was looking around for info and found
viewtopic.php?f=25&p=573021
In particular there is the useful line of code
I suggest adding this to the list of console commands (https://wiki.factorio.com/Console)
I think this is helpful as both an example of using selected to target a particular entity (this is not easy otherwise),
and as an easy way to make something indestructible (there is currently no easy way to do this with out mods).
I suggest including it in the 'Basic example scripts' section (section 5)
viewtopic.php?f=25&p=573021
In particular there is the useful line of code
Code: Select all
/c game.player.selected.destructible = false
I think this is helpful as both an example of using selected to target a particular entity (this is not easy otherwise),
and as an easy way to make something indestructible (there is currently no easy way to do this with out mods).
I suggest including it in the 'Basic example scripts' section (section 5)