I found a way of compilling it, but still got other issues.
.h]
#pragma once
#include "PhysicsEngine/RadialForceComponent.h"
#include "SF_RadialForceComponent.generated.h"
/**
*
*/
UCLASS(hidecategories = (Object, Mobility, LOD, Physics), ClassGroup = Physics, showcategories = Trigger, meta = (BlueprintSpawnableComponent))
class SHOOTERGAME_API USF_RadialForceComponent : public URadialForceComponent
{
GENERATED_BODY()
UFUNCTION(BlueprintCallable, Category = "Physics|Components|RadialForce")
void FireImpulse() override;
UFUNCTION(BlueprintCallable, Category = "Physics|Components|RadialForce")
void AddObjectTypeToAffect(TEnumAsByte<enum EObjectTypeQuery> ObjectType) override;
UFUNCTION(BlueprintCallable, Category = "Physics|Components|RadialForce")
void RemoveObjectTypeToAffect(TEnumAsByte<enum EObjectTypeQuery> ObjectType) override;
protected:
void TickComponent(float DeltaTime, enum ELevelTick TickType, FActorComponentTickFunction *ThisTickFunction) override;
void BeginPlay() override;
void PostLoad() override;
#if WITH_EDITOR
void PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent) override;
#endif
};
.cpp]
#include "ShooterGame.h"
#include "SF_RadialForceComponent.h"
void USF_RadialForceComponent::FireImpulse()
{
}
void USF_RadialForceComponent::AddObjectTypeToAffect(TEnumAsByte<EObjectTypeQuery> ObjectType)
{
}
void USF_RadialForceComponent::RemoveObjectTypeToAffect(TEnumAsByte<EObjectTypeQuery> ObjectType)
{
}
void USF_RadialForceComponent::TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction)
{
}
void USF_RadialForceComponent::BeginPlay()
{
}
void USF_RadialForceComponent::PostLoad()
{
}
void USF_RadialForceComponent::PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent)
{
}
The problem now is that I’m unable of using Super like this:
void USF_RadialForceComponent::BeginPlay()
{
Super::BeginPlay();
}
The new error is also an unresolved external symbol:
1>Module.ShooterGame.1_of_3.cpp.obj : error LNK2019: unresolved external symbol "protected: virtual void __cdecl URadialForceComponent::BeginPlay(void)" (?BeginPlay@URadialForceComponent@@MEAAXXZ) referenced in function "protected: virtual void __cdecl USF_RadialForceComponent::BeginPlay(void)" (?BeginPlay@USF_RadialForceComponent@@MEAAXXZ)
1>D:\UnrealEngineProjects\starfireproject_415\Binaries\Win64\UE4Editor-ShooterGame.dll : fatal error LNK1120: 1 unresolved externals