This is what I used in the past:
Code: Select all
data.raw["offshore-pump"]["offshore-pump"].collision_mask = { "object-layer" }
Any ideas would be appreciated, thanks!
Code: Select all
data.raw["offshore-pump"]["offshore-pump"].collision_mask = { "object-layer" }
Thank you for the help, I was able to get the placement working again on land, though I am having a weird issue where the rotation of the pump resets whenever I move the cursor. I suspect this has to do with the green placeable location tiles now covering every ground tile rather than just tiles adjacent to water.posila wrote: Wed Mar 04, 2020 7:36 am You probably also modify adjacent_tile_collision_test and newly you need to set also adjacent_tile_collision_mask to nil to achieve what you want.
EDIT: You don't need to modify collision_mask at all now, as the pump is being built on land already. You need to change what it checks neighboring tiles for.