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

Method OnHit

Source/Blaster/Weapon/Casing.cpp:32–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32void ACasing::OnHit(UPrimitiveComponent* HitComp, AActor* OtherActor, UPrimitiveComponent* OtherComp, FVector NormalImpulse, const FHitResult& Hit)
33{
34 if (ShellSound)
35 {
36 UGameplayStatics::PlaySoundAtLocation(this, ShellSound, GetActorLocation());
37 }
38 Destroy();
39}
40

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected