Quantcast
Channel: Multiplayer
Viewing all articles
Browse latest Browse all 16796

Only Host runs the script, clients don't.

$
0
0
Hi, this is my first network expirience with unity, so i bump into a problem. I have character which can ride the spawned horse. Everything works fine with a Host, player can mount the horse and control it, movement and animation synchronize with the clients just fine. BUT all of the clients can't control the horse. I know i'm doing smth wrong, but i don't know where to dig. Horse script:
Code (CSharp):
  1. using UnityEngine;
  2. using System.Collections;
  3. using UnityEngine.Networking;
  4.  
  5. public class...
Only Host runs the script, clients don't.

Viewing all articles
Browse latest Browse all 16796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>