How can I allow entities to be placed on top of my entity?

Place to get help with not working mods / modding interface.
Post Reply
JAetherwing
Inserter
Inserter
Posts: 31
Joined: Sat Dec 29, 2018 2:51 pm
Contact:

How can I allow entities to be placed on top of my entity?

Post by JAetherwing »

I have created an entity which is supposed to be above the ground, so I'd like to allow other entities to be placed in it's spot (visually "below" it, but internally at the same x/y position) and vice versa. Is there a way to do this?
I thought, setting the collision box to {{0, 0}, {0, 0}} should be enough, but apparently it is not.

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3700
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: How can I allow entities to be placed on top of my entity?

Post by DaveMcW »

Code: Select all

entity.collision_mask = {}

JAetherwing
Inserter
Inserter
Posts: 31
Joined: Sat Dec 29, 2018 2:51 pm
Contact:

Re: How can I allow entities to be placed on top of my entity?

Post by JAetherwing »

Thank you, that helped me a lot!

Post Reply

Return to “Modding help”