Bringing a player pawn back to its previous position after hitting the killzone
I'm fairly new to the Unreal Engine, and I'm currently creating a mini golf game.
So far, the only real problem I've come across is creating a position reset in between strokes, so that if the ball goes into out of bounds it would go back to its position before shooting, instead of how I have it currently set up (using the killzone to reload the entire level).
I've tried creating an empty actor and getting it to move to the player pawn's position whenever the ball wasn't moving, so that I could save the position, but I couldn't get that to work unfortunately.
I'm assuming the solution is pretty simple, but I can't wrap my head around it for the life of me. If anyone's willing to help, it'd be much appreciated :)
Save the location of the ball when you swing. reset to it when you go out of bounds. You can probably set this wherever you apply the swing force to your ball.
answered Oct 05 '18 at 02:29 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here