- Home /
Problems with network instantiated objects
I have made a multiplayer survival game where the server instantiates some enemy zombie things. Everything works as it should, but when a client see the zombie object it will jump very quickly from one spot to another like flickering. The game is playable but this does not happen to the players. They are streamed correctly but the zombies are not streamed. How Should i make the stop flicker from one place to another? The two places are always really close so its no problem shooting them. Its just really annoying.
Answer by DellanX · Apr 02, 2012 at 11:12 PM
your zombies may have an ai script that is making different decisions on your server then on your client. A quick fix to this is to disable the AI on all but one computer. you could do this by adding:
if(networkView.isMine){ //YOUR CODE GOES HERE }
If that isn't the problem I will need to know more information to help you
I all ready have that before my code. It works correctly its just that it renders itself twice, like its one standing next to the real one. Its just a basic follow script. If needed i can send it to you. Its weird how i can see other players correctly and not the zombies. If i have the client spawn them the same thing happens to the server.
I dont know this codeing yet, but it sounds like you need to make it so that it only creates on the server, or maybe have each computer create a certain percentage of the zombies, I will look and see if there is any way I can figure this out. I dont really get your question and I think your going to need someone elses help, but till someone else shows up ill do my best to help you.
If you want me to, i can make a youtube video showing my problem and then link it in a comment. And i have tested so this is not a connection problem. It does the same thing locally
If you want you can make a youtube video about it. It would sure help me figure out what is going on.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
why does my gun stop shooting 1 Answer
Shooting at ground 1 Answer
Problems with Triggers 2 Answers
Network FPS Scripting Help 1 Answer