[0.17.59] Projectiles disobey collision mask setting

Place to get help with not working mods / modding interface.
Post Reply
User avatar
Earendel
Factorio Staff
Factorio Staff
Posts: 711
Joined: Sun Nov 23, 2014 11:57 am
Contact:

[0.17.59] Projectiles disobey collision mask setting

Post by Earendel »

A projectile given a collision mask (such as "layer-13") and a collision box will collide with other entities (such as a "small-spitter") even though the entities don't collide with the projectile's layer.

The easiest way to replicate is to use the walls-block-splitters mod: https://mods.factorio.com/mod/walls-blo ... /downloads
and get a spitter to shoot at you over another spitter, but the middle spitter gets hit.

posila
Factorio Staff
Factorio Staff
Posts: 5202
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: [0.17.59] Projectiles disobey collision mask setting

Post by posila »

On ProjectilePrototype, you need to set hit_collision_mask. collision_mask is probably ignored completely on projectiles

Post Reply

Return to “Modding help”