Just a few things to check: Are you setting CanAttackBox->bGenerateOverlapEvents = true? Are the callbacks OnBoxBeginOverlap and OnBoxEndOverlap UFUNCTIONs? Have you tried RootComponent = CanAttackBox; rather than the AttachTo that you’re using?
Just a few things to check: Are you setting CanAttackBox->bGenerateOverlapEvents = true? Are the callbacks OnBoxBeginOverlap and OnBoxEndOverlap UFUNCTIONs? Have you tried RootComponent = CanAttackBox; rather than the AttachTo that you’re using?