Question| Kill System, who killed who
Options
Comments
-
Come on guys helppp meee0
-
WTF why you just can't help me, i didn't say that i want the hole script, i just want to know how to do that, that's it -_-, i can see that you helping to other peoples exept me, WHY!?0
-
Please provide the code that you use to fire your projectile, create them with an owner and your management code for PhotonPlayer <-> Player.
Thats the things required to make the implementation of who killed who, if you don't know who shot the killing bullet and who got hit, you can not visualize the information either0 -
dreamora wrote:Please provide the code that you use to fire your projectile, create them with an owner and your management code for PhotonPlayer <-> Player.
Thats the things required to make the implementation of who killed who, if you don't know who shot the killing bullet and who got hit, you can not visualize the information either0 -
Every RPC called can optionally have a PhotonMessageInfo (last paramater of the method that's an RPC). This contains info about the originating player (who calls the RPC). In your case: who is killing someone.
The PhotonView has also an owner, so you could find out who is being killed.0 -
Tobias wrote:Every RPC called can optionally have a PhotonMessageInfo (last paramater of the method that's an RPC). This contains info about the originating player (who calls the RPC). In your case: who is killing someone.
The PhotonView has also an owner, so you could find out who is being killed.0 -
Sorry, I don't have one.
Check the reference documentation (in the download) how to implement the RPC with PhotonMessageInfo parameter (basically: void MyMethod(PhotonMessageInfo pmi)).0 -
Tobias wrote:Every RPC called can optionally have a PhotonMessageInfo (last paramater of the method that's an RPC). This contains info about the originating player (who calls the RPC). In your case: who is killing someone.
The PhotonView has also an owner, so you could find out who is being killed.
but i want to show it on the screed that everyone will see that A kill B..0 -
What keeps you from doing so?
You do know how to show things on the screen, right? It's the same with info coming from a network connection.
Honestly, I can't help with such basic programming questions. Try to solve the problem by breaking it down into multiple steps:
- how do i display data on the screen?
- how do i store data i need for a while?
- how do i display several messages for a while?
- how do i get rid of messages that should no longer display?0 -
Tobias wrote:What keeps you from doing so?
You do know how to show things on the screen, right? It's the same with info coming from a network connection.
Honestly, I can't help with such basic programming questions. Try to solve the problem by breaking it down into multiple steps:
- how do i display data on the screen?
- how do i store data i need for a while?
- how do i display several messages for a while?
- how do i get rid of messages that should no longer display?
cause i want to use gui..0