- Home /
Question by
Rukiryo · Feb 12, 2014 at 03:25 AM ·
networkingserverrpcclient
Sending RPC To Specific Player On All Clients?
Hi, I've coded an aircraft dogfight game and I have planes that can shoot. The problem is that my RPC call that sends the "TakeDamage" function, gets called on all planes. (This call is sent by the server).
How can I make it so that I send an RPC to everyone (for that plane to take damage) but have it speak to a specific plane? I can identify the plane it hits in the server but I need to identify that plane on all clients as well.
Thanks!
Comment
You have to identify the clone of the specific plane by the NetworkView.viewID
Your answer
![](https://koobas.hobune.stream/wayback/20220613133245im_/https://answers.unity.com/themes/thub/images/avi.jpg)