How to send Variable value (bool) from User to MasterClient?
Hi,
I am making a multiplayer game which involves a action where User request access from MasterClient, MasterClient should see a popup and if he clicks approve button the access should be granted to User.
I have two UI ready for both however i am unable to send the click (which returns bool) over network but it doesn't seem to work.
Is there a way to solve this? As I just started learning Photon and its quite complicated already.
Thanks in advance.
I am making a multiplayer game which involves a action where User request access from MasterClient, MasterClient should see a popup and if he clicks approve button the access should be granted to User.
I have two UI ready for both however i am unable to send the click (which returns bool) over network but it doesn't seem to work.
Is there a way to solve this? As I just started learning Photon and its quite complicated already.
Thanks in advance.
0
Best Answer
-
You want to approve players when they join? That's not built in and would be very unreliable, as the Master Client may fail anytime (and thus not react anyways).
What do you want to achieve?
This is not built-in to Photon but of course it can be solved somehow. It's just uncommon for us.
If you do this for security reasons: Don't. It can be hacked, as it would be just client-side.
You can do (Photon-)external matchmaking and have a server assign rooms to users.5
Answers
-
You want to approve players when they join? That's not built in and would be very unreliable, as the Master Client may fail anytime (and thus not react anyways).
What do you want to achieve?
This is not built-in to Photon but of course it can be solved somehow. It's just uncommon for us.
If you do this for security reasons: Don't. It can be hacked, as it would be just client-side.
You can do (Photon-)external matchmaking and have a server assign rooms to users.5 -
Thank you Tobias, confusion solved.0