Download

Problem including AIController

On Version 4.7b8

I’m trying to get my AActor subclass to cast it’s AController to AAIController. I added the AIModule to my build project, which allows my AActor to compile properly, but now i’m failing to compile on UObjectBaseUtility: Use of unidentified Type ‘AAIController’

Anyone have any idea on why its failing?

I seemed to have solved it. I was importing the following:
#include “BehaviorTree/BlackboardComponent.h”
#include “BehaviorTree/BehaviorTreeComponent.h”
#include “BehaviorTree/BehaviorTree.h”

Apparently all three of these cause issues for some reason… I ended up just importing
#include “AIController.h”

And it compiles now.