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

Sync Flashlight on every Client

$
0
0
I'm trying to sync a flashlight state (On/Off) on every client.

If I do it with a command, only the host client sees the light, and I don't really know what to do.

I tried to do it with my MovementSync script, that is working, but each client only sees his own light.


I'm pretty sure it's super wrong, but here is my MovementSync script transformed in lightSync:



using UnityEngine;
using System.Collections;
using UnityEngine.Networking;

publicclassFlashlight:NetworkBehaviour{...

Sync Flashlight on every Client

Viewing all articles
Browse latest Browse all 16796

Trending Articles



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