Abstract Class c++

Hey guys,

I want to create an Abstract class AI in Unreal Engine c++ but it keeps giving me error code 2;
Now I googled this error but it doesnt really give me any info…

// Fill out your copyright notice in the Description page of Project Settings.

#pragma once
#include "UObject.h"

/**
 * 
 */

UCLASS(abstract)
class MOONSHINEWORKS_API UAI : public UObject
{
	GENERATED_UCLASS_BODY()
};

Can someone tell me what I am doing wrong ?:slight_smile:

Thanks

Falko

Things like AI should be extended from AAIController or at least AController if you want to make your own AI base. AController is made for pawn control logic, so it will be easier for you to implement it and attach it to pawns.