Page 1 of 1

Help with proper way of making collisions

Posted: Fri Jan 24, 2025 1:02 pm
by MsBinaryLily
Hi, so, I'm making a mod that includes a grenades that explodes in a cluster of tree seeds that plant trees wherever they land.

So far, I had no problem with the projectile part, however...
The scattered seeds seem to plant themselves EVERYWHERE.
That includes water, concrete, nuclear ground, inside buildings, inside ghosts (which deletes them, very annoying)

Ideally, I just want seeds to plant themselves on valid unoccupied tiles, (optionally) drop themselves as an item (marked for deconstruct) on hitting artificial tile, and just die and do nothing on all other tiles. And generally not interfere with buildings / ghosts.

I've heard about collision masks and layers, however I don't quite understand how these should be set up and I feel like I've been doing weird things.
What would be the best way to do this?

Re: Help with proper way of making collisions

Posted: Tue Jan 28, 2025 10:04 am
by Natha
What happens if you set find_non_colliding_position to false?