jvukovich
(jvukovich)
May 31, 2017, 12:49am
49
@jvukovich - Looks like you’re reusing the sample behavior tree of the demo project. The demo project has been setup in such a way that it picks goals from pawns via the “Goal Actor” public variable (which is set on a pawn from the map via world outliner). Additionally, each pawn implements a simple interface called “Demo Pawn Interface” which allows the behavior tree task to extract the goal from any arbitrary pawn. Now, if you’re testing with the sample BT and not doing either of these, then the “Invalid Goal” message which you’re seeing appears.
Of course you will eventually want to switch out the sample “Pick Goal” / “Pick Bot” tasks with your BT task/logic/implementation which sets the FlightLocationKey blackboard to a suitable vector depending on the specific gameplay tasks your A.I. is trying to achieve.
Edit:- I notice you’re already setting the BB keys directly. In that case you should not be using the Pick Bot (“Refresh Pursuit Goal”) node in your behavior tree at all. That node will attempt to override the goal with its own logic which is not desirable in your case.
OH! I get it now, thank you so much! I am new to behavior trees, but now that you have explained it, it makes perfect sense. Thanks so much for this awesome plugin & helping out the community.