Continue Patrol if Unable to Arrive?

Vaulcul

New member
Is there a way to get a patrolling object to "give up" on getting to the selected patrol point if it is currently unreachable and continue with the patrol?

I can't seem to find anything to allow this, or at least, I can't figure it out.
 
Do you mean within the behavior tree or within the task itself? Wander uses SamplePosition to ensure the destination is valid but this isn't done on the patrol task. It would be fairly easy to add and I can look into doing that. Or do you want to have the patrol point initially valid and then check every frame if it is still valid?
 
The task is what would benefit the most for what I'm doing. If I'm understanding what SamplePosition does, it checks to see if it can get to the point on first attempt and then decides whether to go to the point from there... This would work for what I'm doing... But, I can think of times I might want to check every frame for validity too...
 
Top