on_player_selected_area not firing
Posted: Sat May 27, 2017 3:25 pm
				
				I fired up a new game and ran this command:
And then grabbed a decon planner and tried to deconstruct a tree.
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.
			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.
 Any ETA  on 0.15.20? There is no point in doing any other methods of blueprint modification when I know that it's going to be a lot easier.
  Any ETA  on 0.15.20? There is no point in doing any other methods of blueprint modification when I know that it's going to be a lot easier.