EnemyAIController

I want the main job of this class to set the values for the Blackboard asset, adjust the rotation of the enemy, and use the navigation mesh.

EnemyAIController.h

Just like all the other header files, we have to start with the includes. There is nothing fancy to include here, except the header file of the base class:

#include "AIController.h"
#include "EnemyAIController.generated.h"

Also, define the class name, the inheritance, and the constructor. The three of them are made by default while creating the class, and probably, you don't have to change any of them:

UCLASS()
class BELLZ_APIAEnemyAIController : publicAAIController
{
  GENERATED_BODY()
  
public:
  AEnemyAIController();

As we discussed earlier, the Blackboard asset is like a data ...

Get Mastering Unreal Engine 4.X now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.