public void OnBeginOverlapWrapper(UPrimitiveComponent OverlappedComp, AActor OtherActor, UPrimitiveComponent OtherComp, int OtherBodyIndex, bool bFromSweep, FHitResult SweepResult) { if (OtherActor != null) { if (OtherActor.ActorHasTag(gamemode.BallTag) && gamemaster.bBowlTurnIsOver == false) { var _ballComp = OtherActor.GetComponentByClass <UBowlingBallComponent>(); if (_ballComp != null) { _ballComp.StopRollingSound(); } StartCoroutine(WaitForPinsToFall()); } else if (OtherActor.ActorHasTag(gamemode.PinTag)) { OtherActor.DestroyActor(); } } }