Closed rube200 closed 1 month ago
Thanks for pointing this out. I'll take a look at what's going on.
onVirusUpdated
is the original old client-side event for notifying the UI to change. askRadiate
is called on both client and server while standing in a deadzone - and is only used for that one case - which is questionable but that's why it doesn't call the RPC.
For the next update I've changed askRadiate
to also call OnTellVirus_Global
👍
Atm there is to events for virus change:
onVirusUpdated
andOnTellVirus_Global
But the problem isonVirusUpdated
is almost always client-side except forAskRadiate
but that method doesn't emitOnTellVirus_Global
.So current game implementation:
askDisinfect
andaskInfect
->OnTellVirus_Global
,OnVirusUpdated
(but this last one in client side only)AskRadiate
->OnVirusUpdated