Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

(Solved) Other players freeze when someone teleport

Discussion in 'Multiplayer' started by tijanikun, Oct 16, 2019.

  1. tijanikun

    tijanikun

    Joined:
    Aug 10, 2017
    Posts:
    129
    Hello,
    My game is actually working, but im trying to add a new map with lot of element and high quality
    But on this map only, when someone teleport, the other players freeze for 1 or 2 seconds

    Here the map: https://assetstore.unity.com/packag...capes/mountain-lake-valley-environment-140485

    the transform script:
    Code (CSharp):
    1. [Command]
    2.     public void CmdCenterWarp1()
    3.     {
    4.         warpedTeamin = true;
    5.         warpedTeamin2 = true;
    6.         RpcCenterWarp1();
    7.     }
    8.     [ClientRpc]
    9.     public void RpcCenterWarp1()
    10.     {
    11.  
    12.         gameObject.transform.position = AreaV1.transform.position;
    13.     }
    It works fine with this map: https://assetstore.unity.com/packages/3d/environments/sci-fi/cyber-city-120137

    Can someone help me please?
     
  2. tijanikun

    tijanikun

    Joined:
    Aug 10, 2017
    Posts:
    129
    I found the problem, if anyone has similiar situation: it's because the distance to travel with transform.position was to long and it causes freeze while moving that far online
     
    Last edited: Oct 16, 2019