Announcement

Collapse
No announcement yet.

Cloning the Third person character

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Cloning the Third person character

    Hi guys,

    I have a third person character that I want to "clone" multiple times. I want all my clones to duplicate the main character's rotation, movement, actions (jump, punch etc) at the same time than the main character (I may add a slight delay later to the duplicated actions). I ve tried multiple techniques but none of them work
    Can someone help me?

    #2
    What have you tried so far? Have you tried for example, using event dispatchers, where you pass the Input Vector, the jump action, ..., to the clones?
    "I have harnessed the shadows that stride from world to world to sow death and madness."

    Comment


      #3
      Thanks for your answer EvilCleric
      I havent tried event dispatchers and I'm not familiar with those. How would you do this? Duplicate the main character's BP (or start a new one from scratch?) then what?

      Comment


        #4
        In the player character create 1 or more event dispatchers. In my case, I decided to use 2: one for the movement and another for the jump (you can use just one if you want).

        Click image for larger version  Name:	1.jpg Views:	0 Size:	209.8 KB ID:	1795711

        Now, in the clones or any other character just bind to the dispatchers:

        Click image for larger version  Name:	2.jpg Views:	0 Size:	228.0 KB ID:	1795712
        Last edited by EvilCleric; 08-01-2020, 01:49 PM.
        "I have harnessed the shadows that stride from world to world to sow death and madness."

        Comment


          #5
          How do you get the input vector pin in the call clone movement dispatcher? Or the jump tick box? When I create the dispatcher and call them I only have the exec input?output and the target pin.
          Thanks again for helping

          Comment


            #6
            Originally posted by CeChaos936 View Post
            How do you get the input vector pin in the call clone movement dispatcher? Or the jump tick box? When I create the dispatcher and call them I only have the exec input?output and the target pin.
            Details panel, at the top, there is a section "Inputs". Just press the "New" button.
            "I have harnessed the shadows that stride from world to world to sow death and madness."

            Comment


              #7
              Ok thanks for explaining. I added a World direction pin (coudn't find an input vector one) to the Call Clone Move dispatcher. Is this the same?
              Also, when I try to connect the Cast to ThirdPersonCharacter "As Third Person Character" pin to the Bind event to clone Mov target pin I get an error saying: Third Person Character Object Reference is not compatible with (my cloneBP name) Object Reference. Did I forget to do something?

              Comment


                #8
                "World direction pin"??????
                "Third Person Character Object Reference is not compatible with (my cloneBP name) Object Reference." ???????

                Show some pics of what you're doing.
                "I have harnessed the shadows that stride from world to world to sow death and madness."

                Comment


                  #9
                  Here are some screenshots. Also, when I try to add the "jump" pin box to the call clone jump dispatcher it wont let me add it.
                  Attached Files

                  Comment


                    #10
                    First, ignore "Copy Signature From". You just add new parameter, name it and chose the type.

                    Also, did you create the dispatcherd in the third person character or in the clone? It should be in the thirdpersonchar.
                    "I have harnessed the shadows that stride from world to world to sow death and madness."

                    Comment


                      #11
                      I created the dispatcher in the third person character and when I create pins without "copy signature from" the pins don't show the name i gave them and i get the following compile error:
                      Attached Files

                      Comment


                        #12
                        Select all the nodes with error -> right mouse button -> Refresh Nodes.
                        "I have harnessed the shadows that stride from world to world to sow death and madness."

                        Comment


                          #13
                          Ok this worked, I m one step closer.
                          Now in the clone BP I still cant connect the target pin of the Bind Event to Clone Mov and the custom event still shows the world direction pin even though i changed it in the ThirdPersonCharacter BP (compiled and saved).
                          Attached Files

                          Comment


                            #14
                            Select all the nodes, refresh and reconnect.
                            "I have harnessed the shadows that stride from world to world to sow death and madness."

                            Comment


                              #15
                              just did it and it didnt change anything :/

                              Comment

                              Working...
                              X