Hey, in vr when the player crouching the ai won't hit it any tips on how to handle it?

ShadowZie

Member
Hey, my ai is working fine but when the player will crouch the ai will still see it and attack but the sword will not hit him

any tips on how I should handle it?

thank you
 
What are you wanting to change? Preventing the agent from seeing the player or the attack hitting the player? Are you using our character controller? What task is determining that the agent can be seen?
 
What are you wanting to change? Preventing the agent from seeing the player or the attack hitting the player? Are you using our character controller? What task is determining that the agent can be seen?
Thank you,
I want the agent to attack the player, I don't use the character controller

I use search and within distance so the AI does work he finds it and attacks it the thing is when the player will crouch the ai will still attack but he will hit nothing because the player is crouching
 
In that situation you should modify your attack method so it faces the target. This should be done outside of the behavior tree.
 
Top