LuaSurface.find_non_colliding_position() and LuaSurface.can_place_entity() to support direction and orientation

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
User avatar
Muppet9010
Filter Inserter
Filter Inserter
Posts: 270
Joined: Sat Dec 09, 2017 6:01 pm
Contact:

LuaSurface.find_non_colliding_position() and LuaSurface.can_place_entity() to support direction and orientation

Post by Muppet9010 »

At present there is no way to find a placement location for either a non north direction or a non 0 orientated entity.
Also you can't check buildability of a non 0 orientated entity.

My example is trying to teleport a player's car at its current orientation. However, I can see finding a placement for a non rotationally symmetrical entity could also be a challenge presently.

So ideally:

- LuaSurface.find_non_colliding_position() - would support direction and orientation being supplied.
- LuaSurface.can_place_entity() - would support orientation being supplied.

Post Reply

Return to “Modding interface requests”