Water collison mask

Place to get help with not working mods / modding interface.
Navruz
Manual Inserter
Manual Inserter
Posts: 3
Joined: Wed Apr 13, 2016 2:38 pm
Contact:

Water collison mask

Post by Navruz »

I'm having a issue with a entity involving water tiles. I'm trying to make him collision free except for water tiles. So i made his collision box "{{0,0}, {0,0}}," and his collision mask to "water-tile" but it went over water... I did some research and it seems water tiles aren't in that layer. Is their any way to make the entity not pass through water? Any help would be great :)
User avatar
Adil
Filter Inserter
Filter Inserter
Posts: 945
Joined: Fri Aug 15, 2014 8:36 pm
Contact:

Re: Water collison mask

Post by Adil »

Here's the link for the old thread that might be of use.
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.
Navruz
Manual Inserter
Manual Inserter
Posts: 3
Joined: Wed Apr 13, 2016 2:38 pm
Contact:

Re: Water collison mask

Post by Navruz »

Okay so i understand how the collision mask works but the problem is that trees and water are under the same layer called "water-tile". But i wont it to ignore trees but not water. Is this perhaps not possible? Thank you for that quick respond though :)
User avatar
Adil
Filter Inserter
Filter Inserter
Posts: 945
Joined: Fri Aug 15, 2014 8:36 pm
Contact:

Re: Water collison mask

Post by Adil »

I don't know in which layers are trees located, they seem to have hardcoded mask for default, but have you tried modifying trees so that they dont't have water-tile collision layer.
Then again, quite many entities have that and your entity will still collide with those.
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.
Navruz
Manual Inserter
Manual Inserter
Posts: 3
Joined: Wed Apr 13, 2016 2:38 pm
Contact:

Re: Water collison mask

Post by Navruz »

I tried multiple ways to change trees their collision mask but not a single one worked. Any idea how it would? Also i'm fine with it hitting rocks. If it would just ignore trees that would be great.
Post Reply

Return to “Modding help”