O'Reilly logo

Mastering Unreal Engine 4.X by Muhammad A.Moniem

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required