Code: Select all
/c script.on_event(defines.events.on_player_selected_area, function(event) game.print("Player selected area") for k,v in pairs(event.entities) do game.print(v.name) end end)
Observed behavior: Nothing.
Expected behavior: Messages, "Player selected area" and "tree-05" is printed.
I would like to be able to use this event to detect if event.item == "deconstruction-planner" and event.entities include a "rocket-silo", or if a certain number of entity.types are selected.