Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Editor Question: How to make a zone that NPCs do NOT want to enter?

A topic by Vertebray created 19 days ago Views: 116 Replies: 5
Viewing posts 1 to 4

I uploaded my first Omninet map yesterday, but noticed an issue with how it worked. Enemies were consistently throwing themselves into a lava pit trying to reach the player mechs. So many berserkers lost to the lava pools... Would it be possible to make a zone signifying to the enemies to NOT go there at any cost? 

Developer

This sounds like this is likely a bug with the pathfinding. There’s an “NPC Zone Guides” button in the zones tab that might help:

But dangerous terrain is already marked “try to avoid” internally by default. I’ve noticed that sometimes the NPCs can still end up walking through zones marked as “avoid” while trying to get to places past those zones. I’ll make a note in the bug log to look at this and try to improve the pathfinding.

Thanks for the report 👍

Ah, i see. I'll add some of these to my map to help with pathfinding (one of the more egregious issues i found while playing my map today is a demolisher who was trying to cross through an invalid endpoint, getting pushed back to their starting point, then trying to cross again,  when there was a path they could take right next to them.)

Developer

If you have a screenshot of that situation, I’d love to see it!

Itch doesn't let me post images, but if there's some other way to send it to you I'll be sure to.

I went back and added these zones, but the berserkers still think it's a fun idea to take a lava bath, despite multiple safer paths being available.