Hi Xter -
Try changing the following code in Haunt.cpp from this:
AHaunt::AHaunt()
{
PrimaryActorTick.bCanEverTick = true;
static ConstructorHelpers::FObjectFinder<UStaticMesh> StaticMeshOb_AW2(TEXT("StaticMesh'/Game/UMG/StartMenu_CharacterCreation/StarterContent/Shapes/ShapeCylinder'"));
AssetSM_mControl = StaticMeshOb_AW2.Object;
FObjectInitializer ObjectInitializer;
mControl = ObjectInitializer.CreateDefaultSubobject < UStaticMeshComponent >(this, TEXT("MyDynamicControl"));
//Mesh setting
mControl->SetStaticMesh(AssetSM_mControl);
SetupStaticMeshWithCollision(mControl);
mControl->AttachParent = RootComponent;
mControl->AttachSocketName = "mControl";
}
to this:
AHaunt::AHaunt()
{
PrimaryActorTick.bCanEverTick = true;
static ConstructorHelpers::FObjectFinder<UStaticMesh> StaticMeshOb_AW2(TEXT("StaticMesh'/Game/UMG/StartMenu_CharacterCreation/StarterContent/Shapes/ShapeCylinder'"));
AssetSM_mControl = StaticMeshOb_AW2.Object;
mControl = CreateDefaultSubobject < UStaticMeshComponent >(TEXT("MyDynamicControl"));
//Mesh setting
mControl->SetStaticMesh(AssetSM_mControl);
SetupStaticMeshWithCollision(mControl);
mControl->AttachParent = RootComponent;
mControl->AttachSocketName = "mControl";
}
Also I am not sure where your Socket is being established, but you should also try commenting the mControl->AttachSocketName = “mcontrol” out.
With all of this make sure you are recompile the project before you attempt to open it.
Let me know -
Eric Ketchum