Page 1 of 1

placement constraints

Posted: Wed Jul 22, 2015 7:33 pm
by thewd
Hello mighty All :)
Is there any way to make item placeable only next to rail (like stations and signals)? Where I should dig to? Collision box or something else?

Re: placement constraints

Posted: Wed Jul 22, 2015 7:56 pm
by ThaPear
Unfortunately you cannot restrict arbitrary entities to specific locations.
You could use a dummy signal entity to place it and then use control.lua to replace it with whatever entity you wish to constrain to the railways.