Make the master client trigger an event at my location
Options
I want to send an RPC to the master client telling him to create an event at the location of the client who send him the RPC.
This is to handle physics - when the non-masters hits the ball I want the effect to happen on the master's server because the master is the only one that can control the ball.
Anyone got an idea on a better way of doing this that the code below? It still comes out quite choppy.
This is to handle physics - when the non-masters hits the ball I want the effect to happen on the master's server because the master is the only one that can control the ball.
Anyone got an idea on a better way of doing this that the code below? It still comes out quite choppy.
0
Comments
-
Sorry, I don't have a better idea. IMHO, it's always going to be choppy, unless you go the full distance and implement networked physics yourself. Unity is not deterministic and PUN is built to reduce issues with control and concurrency.
Read:
http://gafferongames.com/networked-physics/introduction-to-networked-physics/
If you want Photon low level messages without PUN restrictions, use RaiseEvent:
http://doc.photonengine.com/en/pun/current/tutorials/rpcsandraiseevent0