Displaying EQS information
To test your gym, just start the simulation; you should notice the following behavior:
- The AI agent will shoot at a target and then reload the weapon
- The AI agent will avoid shooting at targets that are not in the line of sight
This behavior should go on indefinitely; that’s perfectly fine as the gunner is looking for targets by searching for the BP_Target
class. To improve the gym, you may wish to implement some extra logic, such as a destroy system for targets that have been hit or a points counter for each target that has been hit.
To show on the screen what’s happening, you will need to enable the debugging tools, as explained in Chapter 6, Optimizing the Navigation System. Once the debugging tools are enabled, you will just need to hit the 3 key on your numpad to show the EQS information and then select the AI agent; in our case, you should see a set of information similar to the one depicted in Figure 11.6: