Question by
ICY4U · May 23, 2020 at 04:39 PM ·
c#2dnetworkingposition
Help with Unity Networking and teleporting player
Hi so I'm making a multiplayer game using unity networking and when the rounds start I want the players to be tp'ed to their positions. But when I tp one of the players. He just gets a huge velocity. This is my thing that should tp the players
void SecondFinal()
{
pl1.canMove = false;
pl2.canMove = false;
gameState = 2;
doingCountdown = false;
dialogueText.text = "Go!";
Invoke("SecondRemoval", 0.4f);
//goBackToPositionsRound();
//Important part -------------------
pl1.transform.position = pos1;
pl2.transform.position = pos2;
//Important part -------------------
pl1.ResetSpeed();
pl2.ResetSpeed();
pl1.canMove = true;
pl2.canMove = true;
}
Comment