- Home /
[PHOTON] Send and recieve only for the same zone
I'm trying to work on a system which will prevent photonViews from sending information like position and rotation while not being in the same trigger collider.
For example: there are 2 trigger colliders, called: zone1 and zone2.
-player1 has spawned in zone1 -player2 has spawned in zone1 -The players send each other the position and rotation. -player2 leaves to zone2 -player1 and player2 wont send each other the position and rotation anymore -player2 has returned to zone1 -player1 and player2 are now sending the position and rotation again.
How do I accomplish such a thing? How do I prevent players from sending specific information while not being in the same zone at all? How do I make players send the position and rotation only to other players in the same zone and not in other zones?
**Note: it all happends in the same scene.
Many thanks for anyone who will respond to this issue! :)