Page 1 of 1

Underground belt entity.direction incomplete

Posted: Fri Dec 23, 2016 9:55 pm
by Mylon
I tried to copy an underground belt via this code:

Code: Select all

roboport.surface.create_entity{name="entity-ghost", position=belts.position, inner_name="fast-transport-belt", direction = belts.direction, force=roboport.force}
But the underground belt is facing the wrong direction!

Here is an example of a belt created via this method, directly to the left of the player. Notice how the underground belt is facing south (transporting north) instead of north (transporting north).

Image

Re: Underground belt entity.direction incomplete

Posted: Fri Dec 23, 2016 9:56 pm
by Rseding91
Direction is only one part of making an underground belt. you have to specify the "type" as "input" or "output" when making the belt to set if items flow into it our out of it.