Does anyone know how to hook RPC methods in a pun2 game?
I tried setting a pointer to the RPC method in the PhotonView class to call a pun method but it didn’t do anything. No crash or anything.
I already have a lot of shit done for photon like kicking players and destroying their objects but I can’t figure out how to call an rpc method
This is one of the things I tried
Does anyone know how?
I tried setting a pointer to the RPC method in the PhotonView class to call a pun method but it didn’t do anything. No crash or anything.
I already have a lot of shit done for photon like kicking players and destroying their objects but I can’t figure out how to call an rpc method
This is one of the things I tried
C++:
//public void RPC(string methodName, PhotonPlayer targetPlayer, object[] parameters) { }
void *(*CallRPC)(monoString *method, void *target, void* param) = (void *(*)(monoString *method, void *target, void* param))getRealOffset(RPCOFFSET);
//public override void Kill(int iKillerId = -9999, PhotonMessageInfo info) { }
CallRPC(CreateMonoString("Kill"), me, NULL);
//"me" is a pointer to my photon player