Hey,
like if one task fail to play out, it will skip the failed task and do the others then repeat all of them again.
i have been getting that problem lately when the player interrupts the character then she just stops following the behavior Tree completely!
HELP!
Hey @CoreRageS!
So it looks like because the montage was interrupted, itās not calling the āOnAttackEndā which looks like how the event finishes. You could either make a new event to bind from the interrupted path, then go to the Reset on the DoOnce node, or you could run the āOnInterruptedā Exec pin into the āCallOnAttackEndā and I think that will do it, provided it works when it gets to complete the montage!
Give that a shot and let us know how it goes!
Thanks, for replying, imma try the run CallOnAttackEnd into the Anim montage āOnInterruptedā first, cuz that would easier for me, be right back!
Hey, It works!
thanks again mate
Umm, here some updates,
So the first one works, but when i add another attack task and shoot at her when she is doing the taskā¦ she just rotates, wonāt move or perform any of the tasks again, which that wasnāt supposed to happen.
am i gonna have to make another Event Dispatcher for each attack she makes?
what do you think?
You shouldnāt have to make a new dispatcher for each, the one you have with that setup seems reusable. Are you using any animnotifyās that you didnāt carry over from the other attack animation? That could be it.
But itās a different problem, for sure. After the animation, it looks like she gets taken off of the Navmesh or her speed gets set to 0, because she does rotate a few times to try to get to the player or wander, but then canāt move afterwards. Which is different, because itās not failing on that attack node of the BT, itās having issues on the MoveTo nodes.
Do a double check on your animnotifyās if youāre using any, and make sure nothing is setting her speed to 0. Then, if youāre using NavMesh, humor me and justā¦ move it slightly in the world. I know, it seems weird but it fixes a lot of NavMesh issues because it redraws when the box is moved.
Give that a look over and let us know!
itās is not the Anim Notify for sure, cuz i didnāt make one yetā¦ for the others iām not sureā¦ but as soon as shoot her again after the first shot this happens:
what is the deal with all this BT bugs manā¦
Hmm. Iām wondering if it has anything to do with:
A: the weapon or
B: the Look Around BTT.
It seems that the AI lost sight of the player, or it was reset because it says āNoneā on the āAttackPlayerā variable. This is likely an issue in the perception on the AI_Controller. There may be a strange interaction between the AI_Controller and the weapon!
See what you can find!
okay!