Life isn't synchronized
Options
marf
✭
Hi,
I have this script in attachment.
I'm making an online fps but I think that life isn't synchronized correctly because player A hit and kill player B, but player B still has some life in his local view.
Any help?
Regards,
Marco
I have this script in attachment.
I'm making an online fps but I think that life isn't synchronized correctly because player A hit and kill player B, but player B still has some life in his local view.
Any help?
Regards,
Marco
0
Comments
-
What do correspondingly added debug.logs mention on whats going on and what no?0
-
They print a lie that is syncronized as I want, maybe I wrote a code with errors and there is another way (better) to do it... Any suggestions?0
-
Unlikely that they print a lie.
Sure that you aren't checking it in the wrong place or resetting it through some way you forgot? (normally hard to achieve if you properly wrote code focused at unitys component pattern but it can happen none the less)0 -
I think that all is ok, I check all in the script that I've attached, all is there, and it is very strange that it isn't ynchronized...0