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

Method BeginPlay

Source/Blaster/Weapon/Casing.cpp:24–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22
23
24void ACasing::BeginPlay()
25{
26 Super::BeginPlay();
27
28 CasingMesh->OnComponentHit.AddDynamic(this, &ACasing::OnHit);
29 CasingMesh->AddImpulse(GetActorForwardVector() * ShellEjectionImpulse);
30}
31
32void ACasing::OnHit(UPrimitiveComponent* HitComp, AActor* OtherActor, UPrimitiveComponent* OtherComp, FVector NormalImpulse, const FHitResult& Hit)
33{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected