If I do nothing to modify it can PlayerState > PlayerID ever equal 0?
I ask because in my lobby, if a client leaves by accident(crash, closed game window, disconnect, ect) then the widget displaying that client’s name and ID remains for several seconds before getting removed.
Currently I have a tick that checks all the widgets against a playerstate variable within that widget.(that is set to the player in question when the widget is created)
If the playerstate == none then the widget is removed.
I noticed that during the few seconds that the widget remains, the displayed name and PlayerID are immediately cleared.
Would it be safe to instead check if the PlayerID == 0 then remove?