Hey guys,
I’ve got a stupid beginner failure.
I’m doing this tutorial to get in Behavior Trees:
Behavior Tree in Unreal Engine - Quick Start Guide | Unreal Engine 5.1 Documentation
On paragraph 8 point 3 I have to save last known position of my player to let the “AI”-Enemy run to this position if it loses the sight to my player.
I’m trying to do this inside the EnemyController (Blueprint). Probably it would be the best way to do it inside an service for the behavior tree. But I can’t let it go to try it trough that Blueprint until someone tell my why I should not do this.
I can’t figure out what’s going wrong.
You see an image as part of my BP. I get the location of my player and set it as vector value to my BlackBoard-value. To (some kind of) debug, I print the player location. In the end of that way of branch I print the value of my Blackboard-value and it’s totally different and at least not looking as an Vector inside my Map.
What could go wrong at this place? Why isn’t my value set correct?
fyi:
the condition is true, if the enemy loses sight and player was spotted before. (I know I have to set spotted to false in this strand. I will do it later )
Log-Output:
Thanks for your answers.