placement constraints

Place to get help with not working mods / modding interface.
Post Reply
thewd
Burner Inserter
Burner Inserter
Posts: 17
Joined: Sun Dec 07, 2014 10:39 am
Contact:

placement constraints

Post 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?

User avatar
ThaPear
Fast Inserter
Fast Inserter
Posts: 226
Joined: Fri May 30, 2014 8:05 am
Contact:

Re: placement constraints

Post 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.

Post Reply

Return to “Modding help”