Lua way to Shift+Click a blueprint?
Posted: Fri Dec 03, 2021 3:10 pm
Hi everyone,
I'm looking for the Lua way to simulate a Shift-Click-Placement of a certain blueprint at a certain position without relying on the mouse pointer. Does anybody have an idea on how that could be achieved?
What I actually want to achieve is that a moving spidertron continuously places a selected blueprint (e.g. by finding its name in my local blueprint book) at its position in the same way I would do manually by keeping Shift+Click pressed while sitting in the spidertron. However, I would like it to do it without my attendance and without having me as a driver.
So far, I am only able to place individual tiles and entities automatically at the spidertron's position and I still have to call a calculated deconstruction area each time, which seems cumbersome as it must not overlap already placed tiles/entities from the previous position. Is there an easier way to emulate the continuous Shift-Click placement?
Every hint is much appreciated!
I'm looking for the Lua way to simulate a Shift-Click-Placement of a certain blueprint at a certain position without relying on the mouse pointer. Does anybody have an idea on how that could be achieved?
What I actually want to achieve is that a moving spidertron continuously places a selected blueprint (e.g. by finding its name in my local blueprint book) at its position in the same way I would do manually by keeping Shift+Click pressed while sitting in the spidertron. However, I would like it to do it without my attendance and without having me as a driver.
So far, I am only able to place individual tiles and entities automatically at the spidertron's position and I still have to call a calculated deconstruction area each time, which seems cumbersome as it must not overlap already placed tiles/entities from the previous position. Is there an easier way to emulate the continuous Shift-Click placement?
Every hint is much appreciated!