MCPcopy Create free account
hub / github.com/DruidMech/MultiplayerCourseBlasterGame / BeginPlay

Method BeginPlay

Source/Blaster/Weapon/Weapon.cpp:53–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53void AWeapon::BeginPlay()
54{
55 Super::BeginPlay();
56
57 AreaSphere->SetCollisionEnabled(ECollisionEnabled::QueryAndPhysics);
58 AreaSphere->SetCollisionResponseToChannel(ECollisionChannel::ECC_Pawn, ECollisionResponse::ECR_Overlap);
59 AreaSphere->OnComponentBeginOverlap.AddDynamic(this, &AWeapon::OnSphereOverlap);
60 AreaSphere->OnComponentEndOverlap.AddDynamic(this, &AWeapon::OnSphereEndOverlap);
61
62 if (PickupWidget)
63 {
64 PickupWidget->SetVisibility(false);
65 }
66}
67
68void AWeapon::Tick(float DeltaTime)
69{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected