Object not movable [cpp]

Hey all,

When creating my Actor I used the following constructor which is referenced in the header

ACPP_Flashlight::ACPP_Flashlight(const class FObjectInitializer& ObjectInitializer) 
	: Super(ObjectInitializer)
{
    Mesh = ObjectInitializer.CreateDefaultSubobject<UStaticMeshComponent>(this, TEXT("Mesh"));
RootComponent = Mesh;

LightSpot = ObjectInitializer.CreateDefaultSubobject<USpotLightComponent>(this, TEXT("LightSpot"));
LightSpot->AttachTo(Mesh);
}

When i Create the BP and move it into the editor this problem persists when moving the object, both the mesh and Light stay at 0,0,0 position in world,

29106-prob.png

Is it “moveable” or “static”?

It should be static, moving with the player. I have tried both but it is not moving either way.

oh i had something like his happen the attached object would just sit there no matter where i moved the main object in the blueprint. Try creating a new blueprint and attach it to the class …can’t remember is a corrupt blueprint caused it or not.

If not, try witching the class to a pawn instead of an actor .