armaan8014
Member
Hi
I have an AI that's supposed to run for cover as soon as it takes damage. This sequence works randomly in my setup. Mostly, the sequence doesn't run at all, other times, it runs only once throughout the whole play session. Here's a video showing the behavior tree. You can tell when the enemy is attacked by the sounds. The Start Ability task in that sequence is for sprinting.
I have noticed that removing the Pursue task makes it work more often - could this be interrupting the Take Damage sequence? But why? The Take Damage sequence is the very first, and has a Lower Priority abort set up, so ideally, it should interrupt everything and start the Take Damage sequence as soon as the enemy takes damage right?
Secondly, is there something wrong with the way I've set up that sequence? As in, it often feels like that take damage, take cover sequence can only run successfully once, and then after that it's considered "completed" so it never runs again. Even the symbols show the Success icon, and that never resets to the X failure icon after it has run the cover sequence once. Is there any way to automatically reset the Cover task so that it is allowed to repeat?
I've also checked the logs and mostly the Take Damage task returns success only once per play session as well.
I have an AI that's supposed to run for cover as soon as it takes damage. This sequence works randomly in my setup. Mostly, the sequence doesn't run at all, other times, it runs only once throughout the whole play session. Here's a video showing the behavior tree. You can tell when the enemy is attacked by the sounds. The Start Ability task in that sequence is for sprinting.
I have noticed that removing the Pursue task makes it work more often - could this be interrupting the Take Damage sequence? But why? The Take Damage sequence is the very first, and has a Lower Priority abort set up, so ideally, it should interrupt everything and start the Take Damage sequence as soon as the enemy takes damage right?
Secondly, is there something wrong with the way I've set up that sequence? As in, it often feels like that take damage, take cover sequence can only run successfully once, and then after that it's considered "completed" so it never runs again. Even the symbols show the Success icon, and that never resets to the X failure icon after it has run the cover sequence once. Is there any way to automatically reset the Cover task so that it is allowed to repeat?
I've also checked the logs and mostly the Take Damage task returns success only once per play session as well.