Can see not working?

Hrohibil

Member
Hello

I have a simple setup where after a wait time node ai seeks the player. After he foundes player he wanders. During the wander I have set a can see and a flee.
Those two don’t get read at all. I have a huge monster I want when the ai comes near him he should flee.

What do I need in order to run the can see ?
The can see view cone is position at ai feet, is it possible to adjust this?

How do I properly run the canSee and flee in parallel with the other nodes??
 
Hello

Please advice.

My below tree i try to setup so that after an initial WAIT time, AI goes to seek state, find player and then starts to WANDER.
This works fine.

I want in parallel or at all time to also if Ai meets a dummy capsule, CAN SEE node then it should FLEE.
It never runs/executes that part...

In the can see node i set my capsule as the target and only changed the View Distance..
Capsule has collider and rigidbody

aibot.png
 
I recommend taking a look at this video for how to structure your tree for this situation:

 
Try raising the TargetOffsetY a bit off the ground, like 0.5.

You have also set the TargetObjects list to a size of 1 but have it unpopulated (Element 0 is None). I'm not sure if that overrides the Target Object variable. Try setting that to 0.
 
Last edited:
Top