- Home /
Photon SceneObject Creating by Client
Hello, so I have packages with loot. When player press E when in trigger he can destroy package and spawn item. Since I need package to be scene object I'm sending RPC to master client to destroy package (by photonview) and to spawn item in place of it. Everything is working fine packages are sync on both master and client but when client is looting it (i don't know why) he is sending RPC 2 times and every next time 1 more time. I have PhotonTargets.MasterClient only. It's not fault of trigger because I have bool that makes rpc possible to send only 1 time. Looking for any advice.
Hey there, i guess you have to post some of your code so we might check whats going on. Did you check that only the local/is$$anonymous$$e player is executing the rpcs for looting? Does this happen with only one player or multiple? Do you call rpcs from rpcs?
Your answer
Follow this Question
Related Questions
Photon Instantiate object not disappear after dc master client 0 Answers
set otherplayer as master client when master client leaves room photon 1 Answer
Photon synchronization on different devices failes 0 Answers
Getting rotation to work on client 1 Answer
How does the synchronization work with Photon Pun RPCs and stream.IsWriting? 0 Answers