get/setdestructable()

Place to get help with not working mods / modding interface.
drs9999
Filter Inserter
Filter Inserter
Posts: 831
Joined: Wed Mar 06, 2013 11:16 pm
Contact:

get/setdestructable()

Post by drs9999 »

Could it be that both methods are not working anymore or did you changed the keywords?

Because I want to make some entities not minable and indestructable, using setminable(false) works fine, but setdestructable(false) is not working...

ficolas
Smart Inserter
Smart Inserter
Posts: 1068
Joined: Sun Feb 24, 2013 10:24 am
Contact:

Re: get/setdestructable()

Post by ficolas »

I also need that feature for my map :( I forgot to add it, and I can confirm that setdestructable doesnt work, but that setminable works, plz move to the bug reports :(

drs9999
Filter Inserter
Filter Inserter
Posts: 831
Joined: Wed Mar 06, 2013 11:16 pm
Contact:

Re: get/setdestructable()

Post by drs9999 »

As an addition:

Because setdestructable is not working I decided to set the entity's health enormously high and discovered that sethealth() is not working as well.
Anyway you can use entity.health = x for that

ficolas
Smart Inserter
Smart Inserter
Posts: 1068
Joined: Sun Feb 24, 2013 10:24 am
Contact:

Re: get/setdestructable()

Post by ficolas »

drs9999 wrote:As an addition:

Because setdestructable is not working I decided to set the entity's health enormously high and discovered that sethealth() is not working as well.
Anyway you can use entity.health = x for that
I thought entity.health had a max (the entity's initial health)

drs9999
Filter Inserter
Filter Inserter
Posts: 831
Joined: Wed Mar 06, 2013 11:16 pm
Contact:

Re: get/setdestructable()

Post by drs9999 »

yes when you said that I can remeber that I read that somewhere, too. But does not matter, it is working for values higher than max health

kovarex
Factorio Staff
Factorio Staff
Posts: 8194
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: get/setdestructable()

Post by kovarex »

Oh, it was corrected to destructible, I will update it on the wiki once I repair it :)

drs9999
Filter Inserter
Filter Inserter
Posts: 831
Joined: Wed Mar 06, 2013 11:16 pm
Contact:

Re: get/setdestructable()

Post by drs9999 »

Thanks. It is working now.

Post Reply

Return to “Modding help”