Help Visualising Structure

Akairem

New member
I want to have a structure where, upon seeing the player, the AI will seek them. But if the player moves out of vision, I want the AI to begin searching before returning to wander.

I'm having a hard time figuring out how to structure this. I originally thought a conditional evaluator would work, but it doesn't run continuously so I can't use it. And I'm not sure if there is a way or not for me to end seek when can see is no longer valid.

Any ideas at all?
 

Attachments

  • 310b588e2dc635db2617ca7abffb8ecb.png
    310b588e2dc635db2617ca7abffb8ecb.png
    30.4 KB · Views: 4
Search will search forever so you will need a way to interrupt it. You could use the Parallel Selector with a Wait task to do that, sort of similar to:

--------------------------Selector
------/----------------|--------------\
--Sequence---Parallel Selector---Wander
------/-----\------|--------|
-Can See-Seek---Wait--Search

I also recommend that you go through these documents which should how to structure a pretty advanced tree:

 
Search will search forever so you will need a way to interrupt it. You could use the Parallel Selector with a Wait task to do that, sort of similar to:

--------------------------Selector
------/----------------|--------------\
--Sequence---Parallel Selector---Wander
------/-----\------|--------|
-Can See-Seek---Wait--Search

I also recommend that you go through these documents which should how to structure a pretty advanced tree:

That's really useful. Thanks so much!
 
Back
Top