Hello, I have package looting system. (I'm using photon for multiplayer) It's working like this:
OnTriggerStay > GetKey > Send RPC to master to delete package and spawn item. But there is one problem, when I'm using GetKeyDown it's working fine but I need to click right in 1st frame so I wanted to fix it I made bool onActivated and I used GetKey, bool is blocking repeate and on masterclient it's working fine but on client it's sending rpc 4-5 times (when i'm using getkeydown its working ok even on client).
I tried to fix this in few ways but it's not working, any ideas?
↧