Can a room have its own functions?
Options
Hello,
I'm working on a demo at the moment, I'm really new to the PUN2 API and I'm still learning, so my problem is I have this "dice" and when it's pressed it'll show a random number, now, from what I understood on PUN2 I need to call locally a function, have the number, then send it using punRPC
Now this seems kinda insecure for me to implement because the calculation is being done locally, I was hoping maybe the server to do this and just sync the dice info (the client needs no calculation on their side)
is this possible? because if it isn't, anyone can bypass that and set the number without any problem.
Thanks!
I'm working on a demo at the moment, I'm really new to the PUN2 API and I'm still learning, so my problem is I have this "dice" and when it's pressed it'll show a random number, now, from what I understood on PUN2 I need to call locally a function, have the number, then send it using punRPC
Now this seems kinda insecure for me to implement because the calculation is being done locally, I was hoping maybe the server to do this and just sync the dice info (the client needs no calculation on their side)
is this possible? because if it isn't, anyone can bypass that and set the number without any problem.
Thanks!
0
Comments
-
No, thats not possible with Photon.
Since you just started with Pun, you shouldn't care to much about security/cheating.1 -
for me it's important since I need to avoid cheating whenever I can and having the client do that calculation is a no go, isn't there an alternative using Photon? I was looking forward on using the cloud system
bolt wont work for this? I think it does0 -
Hi @Hex,
Thank you for choosing Photon!
There is a "Cheating and Hacking Protection" little doc page.0