What lecture are you on?
im not doing the lectures im just using the behavior tree of the lectures of simple shooter on another game, some enemys pawn set the player location but another set it to invalid
maybe it could be because an object is interfering with the nav mesh?
Well if they can’t see the player then it would be invalid. Can those AI see the player?
yes they can see the player because the player enters into the pawn sensing, but for some reason set the fvector playerlocation to invalid, this only happen with some enemys pawn, others follow the behavior tree correctly
i have researched in the unreal forum but i did not found anything helpful
Do you have other pawns in the level? Because that screenshot shows the opposite of what you’re saying. The AI that you’re debugging can’t see the player so it cleared the location which means it shows up as invalid
okey the player enter into the pawn sensing but the enemy cannot see the player,
but some enemys can, why its happening this?
- Have you ensured you’re debugging the right AI to what you’re looking at?
- Do these enemies have different pawn or AI controller classes? How do they differentiate?
1- i think that yes, im looking to the enemys to follow the player when they see it and atack
2- is the same type of enemy and have the same ai controller there is no difference between them, just in different locations, for example:
also i noticed that what is happening is that enemys see the player and atack it but then when they return to the startlocation set the playerlocation value as invalid
That would be because you’re clearing the blackboard key. That’s supposed to happen.
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.