Hi there.
I’m currently on 4.6.1 (I don’t feel like updating) but I’m assuming that it won’t matter that much code-wise. I can’t seem to get it working. I’ve googled a lot but I don’t get any definitive answer about my problem.
//DestroyableActor.h
#pragma once
#include "GameFramework/Actor.h"
#include "DestroyableActor.generated.h"
UCLASS()
class BASEGAME_API ADestroyableActor : public AActor
{
GENERATED_BODY()
//Constructor.
ADestroyableActor(const class FObjectInitializer& PCIP);
};
//DestroyableActor.cpp
#include "BaseGame.h"
#include "DestroyableActor.h"
ADestroyableActor::ADestroyableActor(const class FObjectInitializer& PCIP) : Super(PCIP)
{
}
This does not seem to compile properly. It gives me errors that don’t make sense like I’m missing a semicolon and stuff like that… and I don’t think that’s the problem.
That still didn’t work. I had to changed GENERATED_BODY() to GENERATED_UCLASS_BODY() for the function to compile properly. I kept reading everywhere that it was deprecated, but it won’t compile for me otherwise.
Anyhow, thanks for your response.