Page 1 of 1

[0.14.3] Robots do not respect minable/destructible variable

Posted: Sun Sep 04, 2016 2:35 pm
by NosBit
So...i create an entity from a scenario script and set its destructible and minable variables to false then i try to use deconstruction planner on it and robots are removing it

More over i tried to do some debugging and did this:

Code: Select all

script.on_event(defines.events.on_marked_for_deconstruction, function(event)
  local entity = event.entity
  local player = game.players[event.player_index]
  player.print(tostring(entity.destructible) .. "/" .. tostring(entity.minable))
end)
and the output when i try to deconstruct is true/true

also i checked the values in tick event and they were false/false, canceling deconstruction returns them back to false/false i guess since i cant remove them with player if i try to do so.

Re: [0.14.3] Robots do not respect minable/destructible variable

Posted: Sun Sep 04, 2016 4:14 pm
by Klonan
I cannot reproduce the issue,

When the entitiy is not minable and not destructible, they aren't being marked for deconstruction:

Re: [0.14.3] Robots do not respect minable/destructible variable

Posted: Sun Sep 04, 2016 4:22 pm
by NosBit
Sorry my bad it was the floor under it that was getting deconstructed and entity was going out of map.