entities that only collide with each other
entities that only collide with each other
I want to make an entity that does not collide with any full layer, but does collide with copies of itself so that two of them can't be [accidentally] placed in the same tile.
Re: entities that only collide with each other
The way to do it would be to put them in the same collision mask but they are (almost?) the only ones in that colision mask, I guess that if you make them only have as a collision box player, or ghost, It will work fine
Re: entities that only collide with each other
How do you control which collision mask an entity goes to? I wouldn't put them in player since I don't want them to collide with player, but putting them in ghost *could* work.
Re: entities that only collide with each other
You would have to give them to custom collision mask and it is not possible now, but we might add it as modding possibility in the future.
Re: entities that only collide with each other
bumping request for custom collision mask
Re: entities that only collide with each other
A partial solution here is to use the "unused" collision layers listed at https://wiki.factorio.com/Types/CollisionMask
This will only collide with other things on layer-14, which is not used in the base game. Another mod might coincidentally use it, which would be unfortunate luck.
Code: Select all
collision_mask = { "layer-14" }
-
- Inserter
- Posts: 33
- Joined: Sun Mar 26, 2017 10:24 pm
- Contact:
Re: entities that only collide with each other
I've often thought that doing something like this with logistic bots would be a way to balance them. It would stop bots from being used to convey huge amounts of material between two points without impacting the ability to use bots in roles they are more uniquely suited for.
Re: entities that only collide with each other
Please keep the debate on bots vs belts in one of the many topics that already exist. This is a request for a modding feature, period.Permittivity wrote:I've often thought that doing something like this with logistic bots would be a way to balance them. It would stop bots from being used to convey huge amounts of material between two points without impacting the ability to use bots in roles they are more uniquely suited for.
Koub - Please consider English is not my native language.