'Cover' task fails

bluebird

Member
Hi @Justin

I want AI agent to hide(take cover) when target comes inside alert range.
I specified alert range at 'within distance' conditional task, however cover task returns failure.. I don't know the reason for failure!

I created separate layer called 'Cover' applied on game objects like wall.

1499

1500
 
Cover will fail if it can't find a cover location. Because the agent isn't guaranteed to find a cover location you'll want to design your tree to be able to handle the case when it can't find cover. The cover location is determined by max raycast, the ray step, and available cover layers.
 
Top