UnrealScripterAI
Discord ↗
Link Copied to Clipboard
×
"create a jump pad with blueprint"
void AJumpPad::NotifyActorBeginOverlap(AActor* OtherActor) { Super::NotifyActorBeginOverlap(OtherActor); if (OtherActor->IsA(APlayerCharacter::StaticClass())) { APlayerCharacter* PlayerCharacter = Cast<APlayerCharacter>(OtherActor); PlayerCharacter->LaunchCharacter(JumpForce, false, false); } }