Give all weapons a rootcomponent

This commit is contained in:
baz 2025-07-22 21:17:06 +01:00
parent 656b81a62e
commit e1b70b092d

View File

@ -18,6 +18,7 @@ AWeapon::AWeapon()
BoxComponent = CreateDefaultSubobject<UBoxComponent>(TEXT("Box Component"));
BoxComponent->SetupAttachment(RootComponent);
BoxComponent->SetCollisionProfileName(TEXT("Weapon"));
SetRootComponent(BoxComponent);
}
// Called when the game starts or when spawned