Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(+1)

Thank you. The AI is actually really simple:

There is a static list of manually placed spots where the NPCs should stand.

  1. NPC chooses one random spot and removes it from the list.
  2. NPC moves to spot (using Unity's NavMeshAgent)
  3. NPC stays at spot for random interval (5-10s)
  4. Repeat with one but re-add last used spot to list after getting a new one.

If at any point during this an NPC enters a fart, they pause their default behaviour until either the fart disappeared or they were able to blame the fart on someone.