I have an AI wandering random (working perfectly) and I want to access to a Bool Key in my BlackBoard to trigger a decorator and make the AI come to the player.
What’s up? I can’t acces to the value.
I can acces inside of my AI blueprint, so can’t it be accessed from outside? Do I have to Enable Inputs inside my AI blueprint to change behaviours manually?
You’re trying to Cast EnnemyController from PlayerPawn, the cast will always fail.
You should make a child Class for the ennemy(RightClick).
Then in ThirdPersonCharacter BeginPlay>>GetAllActorOfClass(Ennemy)>>Get(0)>>You got your EnnemyPawnRef.
From there you can get the controller you’re looking for.
Remove the cast to enemy, because it fails you never get to the GetAllActorsOfClass. Get controller will return your own player controller which is not an AI controller and that’s why the cast fails.