#Undo support for adding/removing wires
1 messages · Page 1 of 1 (latest)
https://lua-api.factorio.com/stable/classes/LuaPlayer.html#drag_wire fake it with that i guess
you might want to test if it actually goes onto the stack tho
I fear adding/removing multiple wires in this manner would add multiple items to the undo stack. I will test it over the next days. Thank you for the suggestion.
Another suggestion I got was to use a blueprint. But this would only add wires. Maybe a combination of "remove all wires" and "add back some removed wires" is possible
I've tried to get LuaPlayer.drag_wire to work, but couldn't get it do to anything. changing the cursor_stack to e. g. red wire worked. but drag_wire never had any effect.