Debugging perception
It’s now time to test our perception logic and learn how to properly debug the Perception system at runtime. In order to do this, we will need to add some small improvements to the base dummy character. As previously mentioned, the Pawn
and Character
classes are already registered with sight stimuli, so we won’t need to implement this logic. However, we will need to handle damage, as we will be playing around with both BP_RoamerDummyCharacter
and BP_GunnerDummyCharacter
. It appears that exciting and enjoyable times are just around the corner!
Enhancing the roamer behavior tree
The first step in improving our AI agents will be adding some logic to handle damage to the dummy roamer behavior tree. In particular, we want the AI agent to sit down when it is hit by a Nerf gun projectile. We will start by adding a new key to the dedicated Blackboard.
Improving the Blackboard
A new flag is required for the Blackboard to effectively monitor and...