- Home /
Networking: How do I send player positions?
How can I send a Players position to each client but have them move only the player which has sent the position movement?
Would RPC calls be best? And how would I do it?
Example code would be nice!!
Answer by BigBlob · Jan 28, 2012 at 05:01 PM
Try This delete the car script if you are using the latest unity 3 version
Felipe
Answer by Owen-Reynolds · Jan 29, 2012 at 05:15 PM
If you use Network.Instantiate (call on one client -- creates the object on all clients,) Unity automatically synchs up all clients' copies.
The trick is, the copies that other people see have to know to ignore the local keyboard. For that, have the script use if(networkView.isMine==true)
.
Your answer
Follow this Question
Related Questions
Assigning Player Numbers 0 Answers
Camera rotation around player while following. 6 Answers
Network two players collision 2 Answers
Set position to transform.forward+distance 0 Answers
Vector3.lerp doesn't work 1 Answer