Yolki
Yolki12mo ago

getting the wrong clientID when obtained

getting the wrong clientID when obtained by a client through ownerIDSelf. To elaborate: I want one client to make changes to another. Client A clicks on Client B's nametag (which Client B owns), and obtains the nametag's ownerIDSelf. Then client A sends a regular event Action (not networked) to a CustomData menu which allows some config to occur with that clientID int as payload. This is a networked model change. Sometimes you'll get Client B, sometimes yourself or another client! There are multiple rooms loaded, but the spawned avatars are all in one room, and the Realtime.clientID is also pulled from the same avatar room.
2 Replies
Yolki
Yolki12mo ago
Seems I am getting some results by syncing the local realtime ID through a custom data model, but seems like a lot of boilerplate
liamc
liamc12mo ago
are you checking ownerIDSelf on the root RealtimeView, or some other RealtimeComponent? Usually just the root RealtimeView will have ownership, so you usually want to check a component's ownerIDInHierarchy instead.