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
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