Allow "unit" type to teleport cross-surface
Posted: Thu Jun 13, 2024 3:42 am
https://lua-api.factorio.com/latest/cla ... l#teleport
Only players, cars, and spidertrons can be teleported cross-surface. May you add "unit" type support?
I workaround it by destroying existing unit and recreating with the unit with same health on the other surface. Doing so have other overhead calls for the army count calculations. It would be nice to do that with one teleport() call.
Only players, cars, and spidertrons can be teleported cross-surface. May you add "unit" type support?
I workaround it by destroying existing unit and recreating with the unit with same health on the other surface. Doing so have other overhead calls for the army count calculations. It would be nice to do that with one teleport() call.