Give all weapons a rootcomponent
This commit is contained in:
parent
656b81a62e
commit
e1b70b092d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user