Kill player over network?
Options
Yeah, I've got two players with a health script on them. How should I go about the death part? The player needs to be able to see who killed him too.
0
Best Answer
-
Well. If a player knows that the character was shot, the shot itself has a sender. So you could derive who killed the character?
The Basics Tutorial has two robots shooting one another and a health value. I don't know, if it explicitly shows who shot who.
https://doc.photonengine.com/en-us/pun/current/demos-and-tutorials/pun-basics-tutorial/5
Answers
-
Bump
0 -
Well. If a player knows that the character was shot, the shot itself has a sender. So you could derive who killed the character?
The Basics Tutorial has two robots shooting one another and a health value. I don't know, if it explicitly shows who shot who.
https://doc.photonengine.com/en-us/pun/current/demos-and-tutorials/pun-basics-tutorial/5 -
You can get the sender of an RPC? Didn't know that. Cheers!
0 -
RPC methods can have a final parameter of type PhotonMessageInfo. You don't use it when sending RPCs but on the receiver, the info parameter gives you the sender, etc.
0