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

Syncvar update condition / visibility / fog of war

$
0
0
Hi,

I'm using SyncVar and a hook to update clients states from an authoritative server.

I would like to implement an "unhackable" fog of war. I want the server to check the distance between non-local and local player and trigger that syncvar hook only if the distance is far from camera or/and in the fog.

I have read about NetworkProximityChecker in doc, but I think it works only with NetworkTransform and I want to avoid that.

Is there a way to make syncvars update only visible players ?...

Syncvar update condition / visibility / fog of war

Viewing all articles
Browse latest Browse all 16796

Trending Articles



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