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 /
This question was closed Jul 30, 2013 at 01:33 AM by Drshk7 for the following reason:

The question is answered, right answer was accepted

avatar image
0
Question by Drshk7 · Jun 30, 2013 at 04:57 AM · animationnetworkingmultiplayernetworksound

Animation & sound over network

Hello! I'm currently trying to build a test multiplayer FPS game to learn. Everything else works except the animation and sound over network. The client that plays sound and animation can see it, but the other clients (or server) can't. For sound, can I just put @RPC(IDK why that links up to a user account but anyway) infont of the function that calls the sound and network.instantiate the physical sound(sound attached to an empty) and play it on awake? For animation, I have seen a lot of Q&As. But I do not understand what they are saying xD I learn faster with a test script and modifying it on my own and studying it. They make a test script but I don't understand a bit. Can you please put a test script describing bits and pieces on the animation script? Like using //. I'm sorry if I'm posting another question even though there are questions like this everywhere. Thank you(future tense)!

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

  • Sort: 
avatar image
0
Best Answer

Answer by mr_poo2 · Jun 30, 2013 at 11:56 PM

this is how i got the crouch animation on my game to work and everyone connected sees it put a network view on every object animating and this script does the rest

 #pragma strict
 
 var crouch : boolean = false;
 
 function Update () {
     if(networkView.isMine == true){
         if(Input.GetKeyDown("c") && crouch == false){
         // if i press c and i have not crouched the animation will play and go to the function fun1
         animation.Play("Crouch");
         fun1();
         }
         if(Input.GetKeyDown("c") && crouch == true){
         // if i press c and i have crouched then it will play the animation to go back to normal and set crouch to false
         animation.Play("Default");
         crouch = false;
         }
     }
 }
 
 function fun1 () {
     // it will wait 1 seccond then set crouch to true
     yield WaitForSeconds(1);
     crouch = true;
 }
Comment
Add comment · Show 2 · 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 Drshk7 · Jul 01, 2013 at 02:02 AM 0
Share

Thanks bro. You didn't have to describe all the pressing c and function stuff but anyway, thanks. All I needed to know was to have network view for every object animated. Thanks.

avatar image mr_poo2 · Jul 01, 2013 at 04:08 AM 0
Share

your welcome

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

Unity networking tutorial? 6 Answers

Network animations 2 Answers

.io style matchmaking (one button matchmaking) 1 Answer

Networking??? 2 Answers

I am using NetworkDiscovery class of Unity to host and listen for a game session. The server broadcasts the game and the client is able to find a game hosted by the server, but am not able to connect to the server at all 0 Answers


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