Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by helow52 · Apr 02, 2012 at 08:27 PM · networkshootingflickering

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.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0

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

Comment
Add comment · Show 4 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image helow52 · Apr 03, 2012 at 12:12 AM 0
Share

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.

avatar image DellanX · Apr 04, 2012 at 03:32 AM 0
Share

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.

avatar image helow52 · Apr 04, 2012 at 04:47 PM 0
Share

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

avatar image DellanX · Apr 04, 2012 at 11:37 PM 1
Share

If you want you can make a youtube video about it. It would sure help me figure out what is going on.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

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


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges