How do I set a wandering actor to test all ground surface within visual radius to find a minimum area of flat space (or near to it)?
I have an actor, who is happily trundling along in his cart (top down but free-look) view. and I want him to test the visible area around him for a series of priorities:
Flat ground area of size x*y which we will call z.
Water source distance from area z. If not in visible range then he doesn’t find one and will need guidance.
Resources within an area of a*b around z that contain resources such as rock, stone, food, gold, coal, animals, etc.
I’ve been trying to figure out how to use the EQS to do this but I can’t get my head around it. I know it’s just the first or second hurdle I need help with then I’ll be able to run with it.
I also tried using AIBehaviourToolkit - but that seems to be staggeringly weak on options.
Well, you are right about using EQS, it is the solution to this problem. You need to create EQS contexts to return back to the EQS system the results of what your looking for and do tests on those results that in turn can make decisions based off of. EQS and AI is a complex topic and there is a lot to it, I would recommend first starting with learning the systems and how to use them with some tutorials found on epics youtube channel like this one:
Tom looman also has an amazing course that goes into AI:
Ouch. Well, after spending 2 hours on the first 28 minutes of the first video I have a headache.
It’s not difficult stuff, using the EQS, it’s just finding the most cost effective and practical method for the specific task you are trying to do.
I can make people wander, I can make them starve, eat, grub on the floor for something to eat. I just can’t seem to get them to find a flat area of ground. It’s weird. Maybe I’m tired and my subconscious will spring up a result whilst I’m sleeping. I always keep a pen by my bed so I can scrawl on whatever is handy. I tried voice notes, but sleepy voice notes tend to be quite unintelligible.