How to get health of other friend on my canvas
Options
Good evening, I'd like to have some idea how to get the health of another player in real time. I use punteam, thx
0
Best Answer
-
Hi @Valakinhas,
if the health value is synchronized in any way you can access it from wherever it is stored, mostly likely from any script attached to the character. If however is not synchronized, you would have to do this first. This can be either done by using RPCs or the OnPhotonSerializeView function.
If you can't get this working, please feel free to ask again with some further details about the current setup.5
Answers
-
Hi @Valakinhas,
if the health value is synchronized in any way you can access it from wherever it is stored, mostly likely from any script attached to the character. If however is not synchronized, you would have to do this first. This can be either done by using RPCs or the OnPhotonSerializeView function.
If you can't get this working, please feel free to ask again with some further details about the current setup.5