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 Fr0stbite · Jun 04, 2013 at 05:34 PM · cameranetworkmove

Network Moving Help.

When i connect to my server I controll the other player and the other player controll me Help Please.

The code of player:

 function Start () {
                 
           if (!networkView.isMine) {
                GetComponent(CharacterController).enabled = false;
           }
           
           if (networkView.isMine) {
                GetComponent(CharacterController).enabled = true;
                }

and the camera:

 function Start () {
           if(!networkView.isMine) {
                
                GetComponent(AudioListener).enabled = false;
                
                GetComponent(Camera).enabled = false;
           }
 }
Comment
Add comment · Show 3
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 Benproductions1 · Jun 05, 2013 at 04:37 AM 0
Share

Learn how multiplayer works, then come back and answer the question yourself

avatar image Fr0stbite · Jun 05, 2013 at 01:15 PM 0
Share

ok so make a tutorial for me because i can't find a good tutorial.

avatar image boxburn · Jun 05, 2013 at 09:18 PM 0
Share

You may find this tutorial useful, I know I did: http://cgcookie.com/unity/2011/12/20/introduction-to-networking-in-unity/

Considering I only started learning any kind of scripting in Unity a matter of weeks ago, this tutorial really did help me create the game I wanted along with other things I found posted online.

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by boxburn · Jun 05, 2013 at 10:01 AM

There are more components that need to be disabled (if you are using the standard First Person Controller they are Character Motor, FPS Input Controller, Mouse Look & Character Controller). You also need to put "" around the component you are trying to access such as:

 GetComponent("CharacterController").enabled = true;
Comment
Add comment · Show 1 · 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 Fr0stbite · Jun 05, 2013 at 01:16 PM 0
Share

ok, thanks

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

16 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How to make your character move? 7 Answers

How to make camera position relative to a specific target. 1 Answer

Switching Cameras at runtime 1 Answer

button click to move camera to another position 2 Answers

Assign camera on Online game to character 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