Announcement

Collapse
No announcement yet.

Multiplayer server spawn at 0,0,0 location

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

    Multiplayer server spawn at 0,0,0 location

    When I host a game and get to the lobby the server spawn at 0,0,0 location and clients spawn at the right location where I put the spawn actor, When I travel to a new map the server also spawn at 0,0,0 location and clients to respective location...
    Also when the server kill someone and the player respawn, the server return to 0,0,0 location.
    BTW my function of respawn have a condition to respawn only the dead character.
    Last edited by brahoule; 04-15-2018, 04:33 PM.

    #2
    Bump Bump!

    Comment


      #3
      Bump Bump!

      Comment


        #4
        The thing you are trying to do is already handled if you unpossess or destroy the player pawn followed by calling RestartPlayerAtTransform.

        If you want the client to call respawn then you need to send an RPC to the server and have the server handle the respawn.

        Comment


          #5
          Originally posted by GarnerP57 View Post
          The thing you are trying to do is already handled if you unpossess or destroy the player pawn followed by calling RestartPlayerAtTransform.

          If you want the client to call respawn then you need to send an RPC to the server and have the server handle the respawn.
          can you show me a blueprint code example? I'm new with unreal engine and I know nothing about RPC...

          Comment


            #6
            I have posted an example of a simple RPC in this discussion
            https://forums.unrealengine.com/deve...77#post1462477
            Last edited by GarnerP57; 04-17-2018, 11:34 AM.

            Comment


              #7
              Originally posted by GarnerP57 View Post
              I have posted an example of a simple RPC in this discussion https://forums.unrealengine.com/deve...65#post1462265
              Your link say : Sorry, you are not authorized to view this page

              Comment


                #8
                It should work now. The original page was deleted. https://forums.unrealengine.com/deve...77#post1462477

                Comment


                  #9
                  Everything work but the server respawn at 0,0,0 when a client spawn or respawn
                  Last edited by brahoule; 04-19-2018, 06:27 PM.

                  Comment


                    #10
                    My project is corrupted or what?

                    Comment


                      #11
                      here is my function in player controller and the function that call to respawn in player character;

                      Comment

                      Working...
                      X