If the npcs aren´t in a family yet, drop them in a family (maybe the player too, but that depends) and do
NPCfamily on collision with NPC
How do I make the ai run away from the player
NPC is moving along path + has LOS to NPCfamily & NPCfamily > NPC --> Find path away from enemy
I'd also like a little help on keeping the npcs from bunching up or chasing the same food, as well as something to detect when the food they're chasing has already been eaten by someone else.
Maybe this helps, made that for a similar question. wackytoaster.at/parachute/findNewPath.c3p