Reconrd movent of thirdperson character and playback with other actor

i found a video to explain more only 40 seconds of your life

Somebody provided these answers but i dont know how to implement that, if you could make a picture of your blueprint implimentation and post it, it would be verry much appreciated

You need to have a structure, first of all. It’ll need to contain at least transform in it and other variables that you need to record. You can do the logic in dynamic game instance, game mode, or pawn blueprint, but I recommend creating a game instance. There, have some booleans: IsRecording and IsPlaying. You’ll need also the structure as an array and int Frame that tells you which frame is currently playing. You’ll need also a timer that loops for example every 0.2 seconds. From there, you check IsRecording and if is, you get all the necessary data from the pawn and you add item to the structure array. If not, check if IsPlaying. If is, you’ll need to get from the structure array using the int Frame, set the pawn transform, etc and add 1 to the Frame

Just save the actor transform every tick in an array. Spawn a new actor with this array and interpolate him per tick along the transforms from the array.
Keep in mind to limit the framerate or do it with a certain amount of time

Thx for your reaction but Could you make a screenshot of the script I have read your answer and i have tried to make it work, but i am missing some vital knowledge of how to do things in ue4 So. Screenshot would be appreciated.

Unfortunately the project is no more on my pc, so let me try to explain it to you.
Create a transform array (transArray) in your character. fix the fps to say 30 and on tick get your transform and append it in the transArray. On the end of the capture spawn your replay actor and pass the transArray.
How your replay actor should be setup:
have a transArray that is public and exposed on spawn and an integer variable (set to 0).
on tick get the index of the transArray of the integer value. Use the transform to interpolate it to the current one and set it to the new transform of the actor. Than increment your integer.

This would be the base. Than you can do a check to loop through your replay actor and the better way would be to not do the recording and replay on tick based but on a time based function.

I hope this helps you :wink:

Yeah thanks

If this helped you to solve the problem, could you mark my answer so others can see that there is an answer for your problem?

Umm hard understanding it am new.so in my character ( I make a tick and connect it to the add array and in the add array I get the word transform of my character so after that I should connect the spawnactor in the tick? Won’t it be spawning O.2 sec?)and in my actor that I want it to replay u said I should make it public(the trans array) what should I do next?