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

Sync explosions

$
0
0
Hello, i'm trying to make a multiplayer tank game. By now, i managed to sync the bullets, movement, spawning and death scripts for host player and the guest players, but i cannot manage to sync the explosions for both players.. I attempted to use the syncvar function, but nothing.. please help.
Code (CSharp):
  1. using UnityEngine;
  2. using System.Collections;
  3. using UnityEngine.Networking;
  4.  
  5. public class Rocket : NetworkBehaviour
  6. {
  7.  
  8.     //[SyncVar(hook = "particuleexplozie")]
  9.     public...
Sync explosions

Viewing all articles
Browse latest Browse all 16796

Trending Articles



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