- Home /
[FIXED] Sync crate position over network
So I'm making a Multiplayer FPS, but I want the players to be able to remove cover (crates) by shooting at the crates. I've tried the simple Network View, but that doesn't work. My shooting system is the simple instantiate, with the rigidbody.addforce. I thought about just making a Network.instatiate, so that it instatiate the bullets on all clients.
But is there a way to make it sync the crates position and rotation if there is a change in their position and rotation?
networkView should work just fine. $$anonymous$$ake sure it is set the track the crates transform, and have it send data either reliable or unreliable - NOT off. Also how are you testing. If you are running both on the same computer. $$anonymous$$ake sure your project runs in background. Edit->Project Settings->Player. Check run in background
I have set it to run In background, the networkView was also set to the transform + not off. The networkView normally only work when a script changes its position, not the rigidbody.
No, the networkView will sync its current transform over all connected instances of the game. You must have something setup wrong... Are the crates being instantiated by the network?
Your answer
Follow this Question
Related Questions
How to implement a Room Mode Multiplayer Game code structure. 1 Answer
How to update a script to a network script 1 Answer
server and client sync 2 Answers
Player 2 not spawning 1 Answer