How to: create mesh that constantly mimics user's actions

Hello!

Let’s say I have some 3rd person character that jumps, crawls, runs and etc.

Is there is a way I can (independently from anything else) create an artificial character that would mimic each of the movements in real time?
So that if user jumps, artificial character jumps at the same time.

Thank you in advance!

(I am fine with blueprints also)

Yes, but normally a Pawn can be Possessed by only one Controller at a time. There is a way around that but I don’t know it.

So the way I would do it is:

  1. Use the same Blueprint for both the Player controlled pawn and the mimicking pawn.
  2. Create custom Events to do every movement and action on that Pawn class.
  3. Have The Player controller trigger those events (and pass the same parameters through them) on both the Pawn it possesses and the mimicking pawn.

Maybe have a variable to reference that other pawn, stored in the player controller, and before firing any of the pawn’s action events, check if the reference is Valid. If not, Get All Actors of Class, loop over the returned array, and assign it to the one that is NOT the player’s pawn, then continue on to perform the action, if one was found.

This will cause it to do the same action at the same time, in whatever place he is in.

If you are asking how to make the mimicking pawn “follow the leader” after the player does a sequence of movements, that would be a totally different approach.

Yes, I think “follow the leader” would be totally different approach

I currently try mimicking the Leap Motion hand so that I can get mirrored left hand, but I have hit the wall because negatively scaling the left hand creates a weird binding to the camera: each time I move my head in headset, mirrored hand moves along axis.

Thank you for your response! I will try that! Hope that will work!

Hello mightyenigma, can you elaborate a bit more on this? hopefully you’re still active here but i would like some more clarity on these steps as I’m trying to create some characters that also mimic the exact motions of the player.