private void Collider_OnComponentEndOverlap(UPrimitiveComponent overlappedComponent, AActor otherActor, UPrimitiveComponent otherComp, int otherBodyIndex) { _bodyCount--; if (_bodyCount == 0) { _time = 0; } }
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(); } } }
protected void ReceiveHitWrapper(UPrimitiveComponent MyComp, AActor Other, UPrimitiveComponent OtherComp, bool SelfMoved, FVector HitLocation, FVector HitNormal, FVector NormalImpulse, FHitResult Hit) { if (Other != null && Other.ActorHasTag(gamemode.BallTag)) { if (bHitFirstPin.Get(this) == false) { bHitFirstPin.Set(this, true); if (MyAudioSourceComponent == null) { MyOwner.PrintString("Please Assign an audio component to the uproperty", FLinearColor.OrangeRed); } else if (PinStrikeSoundVolume1 == null) { MyOwner.PrintString("Please Assign a sound clip to the PinStrikeSoundVolume1 sound uproperty", FLinearColor.OrangeRed); } else if (PinStrikeSoundVolume2 == null) { MyOwner.PrintString("Please Assign a sound clip to the PinStrikeSoundVolume2 sound uproperty", FLinearColor.OrangeRed); } else if (PinStrikeSoundVolume3 == null) { MyOwner.PrintString("Please Assign a sound clip to the PinStrikeSoundVolume3 sound uproperty", FLinearColor.OrangeRed); } else if (PinStrikeSoundVolume4 == null) { MyOwner.PrintString("Please Assign a sound clip to the PinStrikeSoundVolume4 sound uproperty", FLinearColor.OrangeRed); } else if (PinStrikeSoundVolume5 == null) { MyOwner.PrintString("Please Assign a sound clip to the PinStrikeSoundVolume5 sound uproperty", FLinearColor.OrangeRed); } else { PlayPinStrikeSounds(Other); } } } }
private void Box_OnComponentEndOverlap(UPrimitiveComponent overComp, AActor otherActor, UPrimitiveComponent otherComp, int otherBodyIndex) { Ue.ScreenDebugMessage($"{otherActor} don't overlap {overComp} now"); }
private void BoxOnOnComponentBeginOverlap(UPrimitiveComponent overComp, AActor otherActor, UPrimitiveComponent otherComp, int otherbodyindex, bool bfromsweep, FHitResult sweepresult) { Ue.ScreenDebugMessage($"BeginOverlap {otherActor} don't overlap {overComp} now"); }
private void Collider_OnComponentBeginOverlap(UPrimitiveComponent overlappedComponent, AActor otherActor, UPrimitiveComponent otherComp, int otherBodyIndex, bool bFromSweep, FHitResult sweepResult) { _bodyCount++; }