(Resolved) Selection tools and neutral entities
Posted: Mon Oct 21, 2024 9:44 pm
Selection tool (Big Pink Eraser mod) with the the select defined as:
And the filter is:
This is how the find is defined:
When the selection tool is used, neutral entities (ex. crash site entities) are selected, however they do not appear as selected.
Bug or my ignorance?
Code: Select all
select = {
border_color = constants.pink,
cursor_box_type = "not-allowed",
mode = { "deconstruct", "any-entity", "items" },
entity_filter_mode = "blacklist",
entity_type_filters = constants.excluded_types_list
},
alt_select = {
border_color = constants.pink,
cursor_box_type = "not-allowed",
mode = { "deconstruct", "any-entity", "items" },
entity_filter_mode = "blacklist",
entity_type_filters = constants.excluded_types_list
}
Code: Select all
constants.excluded_types_list = { "character", "cliff", "decorative", "fish", "resource", "simple-entity", "tile", "tree" }
Code: Select all
local entities = surface.find_entities_filtered({
area = event.area,
force = constants.allowed_forces
})
constants.allowed_forces = { "neutral", "player" }
Bug or my ignorance?