Object variable not being picked up in Blueprint

AndrewGreen
Fri, 31 Jul 2015 11:47:54 +0000
AI

Hi all, I’m wondering if someone could perhaps help me with a problem I’m having.
I’ve followed this tutorial through to make a bot patrol between waypoints and then attack the player when it detects that the player is within a certain radius: A new, community-hosted Unreal Engine Wiki - Announcements - Epic Developer Community Forums
Now the patrolling part works fine, however after using the useful debug tool, it appears that the problem is in the BTService Blueprint Base blueprint and that one of the object variables (‘EnemyActor’) in this blueprint isn’t being picked up properly so the == condition isn’t being met which causes the branch to always be false. I could be completely wrong as I’m new to the unreal engine. I’ve also attached some screenshots of the behaviour tree (only the nodes I’ve circled in red get activated, I think because the attack branch is activated by the BTService Blueprint Base). I’ve also attached a screenshot of the Blackboard that I ‘think’ the EnemyActor object variable is set from. Sorry if I’m not very clear - I’ve only just recently got into this.

Thanks all, Andy

8 posts - 1 participant