- Home /
ClientRpc call is getting received on a disabled scripts.
I'm just curious but i have a script that sends a clientRpc when someone is shot in my game to all clients that then find the the player who got shot, and do damage etc. But this script that does the shooting (raycast) and the command and rpc calls is disabled on all non local instances of the gameobjects on other the other clients but still receives the rpc calls and does the damage, which is a good thing for me, but i don't know why. The script is attached. Ignore the commented out parts. The damage method of the character class is called on the script specifically attached to the shot player, which deals the damage. link text
By the way, this whole system is based of a tutorial from Brackeys, if that helps.
Your answer
Follow this Question
Related Questions
Unity networking tutorial? 6 Answers
RPC calls with Photon Networking and 'Admin Commands'??? 2 Answers
Object not updating on host 1 Answer
Can a NetworkLobbyPlayer send commands? 0 Answers