[0.14.3] Robots do not respect minable/destructible variable
Posted: Sun Sep 04, 2016 2:35 pm
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:
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.
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)
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.