Trying to make an AI hunger and eating system
I want a group of sheep to roam around randomly within the characters proximity, and while they do randomly stop and eat. I have gotten them to move, not fluidly yet but where I am absolutely stuck is making them stop and eat.
I have made an internal system for hunger but no matter how I mess with it I cannot make them stop eating and roam again because hunger replenishment is broken. I assume I am calling things in wrong order or something.
asked Jun 14 '16 at 07:57 PM in Blueprint Scripting
Can I suggest another method for doing this?
answered Jun 14 '16 at 10:42 PM
Of course. You are going into Hunger code on Event Tick. It has nowhere else to go. I suggest adopting Behavior Trees instead of your current approach. Also, watch this series, they implement Behavior Trees, Hunger system and more.
Follow this question
Once you sign in you will be able to subscribe for any updates here