Every time I try to add a class derived from AIController it causes the error of Error: SuperClass aicontroller of basepatroller not found. Is AIController a static class or is there something im doing wrong?
Can you post the header file for your custom AIController subclass? (basepatroller I think).
Try including the header of AIController before trying to derive from that class:
#include "Runtime/AIModule/Classes/AIController.h"
So you header file should look something like this:
#pragma once
#include "Runtime/AIModule/Classes/AIController.h"
#include "MyController.generated.h"
UCLASS()
class AMyController : public AAIController
{
GENERATED_BODY()
};
Also remember that you need to add AIModule to your public dependency modules.
YourProject.Build.cs file:
PublicDependencyModuleNames.AddRange(new string] { "Core", "CoreUObject", "Engine", "InputCore", "AIModule" }); //This should include AIModule