on_robot_mined_entity respect no entity.neighbour
Posted: Fri Feb 15, 2019 6:52 pm
Hi!
With this mod https://mods.factorio.com/mod/ShowUnconnected I get that if I use
This pseudocode works as expected:
the script has found the neighbour; added the mark
But this one can't see the neighbour of underground belt:
the script doesn't see the neighbour of underground belt; no mark added
With this mod https://mods.factorio.com/mod/ShowUnconnected I get that if I use
This pseudocode works as expected:
Code: Select all
on_player_mined_entity
if entity.neighbours then
game.print ('player entity neighbours ')
else
game.print ('no player entity neighbours ')
end
But this one can't see the neighbour of underground belt:
Code: Select all
on_robot_mined_entity
if entity.neighbours then
game.print ('robot entity neighbours ')
else
game.print ('no robot entity neighbours ')
end