Page 1 of 1

get/setdestructable()

Posted: Fri Jul 05, 2013 6:26 pm
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...

Re: get/setdestructable()

Posted: Fri Jul 05, 2013 6:37 pm
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 :(

Re: get/setdestructable()

Posted: Sat Jul 06, 2013 10:42 am
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

Re: get/setdestructable()

Posted: Sat Jul 06, 2013 11:55 am
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)

Re: get/setdestructable()

Posted: Sat Jul 06, 2013 1:22 pm
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

Re: get/setdestructable()

Posted: Wed Jul 10, 2013 8:04 pm
by kovarex
Oh, it was corrected to destructible, I will update it on the wiki once I repair it :)

Re: get/setdestructable()

Posted: Fri Jul 12, 2013 8:47 am
by drs9999
Thanks. It is working now.