I have a" create-entity" trigger effect which does this:
Code: Select all
 {
	type = "create-entity",
	entity_name = data.entity_name,
	check_buildability = true,
	find_non_colliding_position  = true,
	non_colliding_search_radius = 3,
	tile_collision_mask  = {layers = {ghost= true} }
}
Adding the tile collision mask for ghosts doesn't seem to effect the search radius as it will place on a ghost and remove it.
The expected behavior for me would be to not remove/replace the ghost, or at least avoid it altogether (or fail placement - either is fine)
Something along the lines of find_non_colliding_position_use_mask = true, which would mean that when rechecking the position to also use the tile_collision_mask layers when checking the radius.
Cheers


