guiOverlay (ie. Names above the players)
by Harold "LabRat" Brown · in Torque Game Engine · 08/21/2001 (1:54 am) · 1 replies
Blah... my head hurts... This control won't work right if I can't access the clientId of everyone on the server... which I can't seem to get right on the client side. It works fine if I host.
The problem is that when you host the data is stored in a SimGroup called clientGroup, with each connection being added to that SimGroup. When you host a server that's no big deal as you have access to that information. When you connect to another server you don't have anything in that SimGroup.
What you do have is a SimGroup named PlayerListGroup stored in the ClientConnectionGroup that stores pretty much the same information as that stored in the clientGroup SimGroup.... except each "record" is a ScriptObject. But for the life of me I can't figure out how to access that information without resorting to scripting, which would require me to re-write the PlayerListGroup functions to support indexing of some kind.
So if anyone has or does know how to access the properties of a ScriptObject that is the member of a SimGroup, that is itself the member of a SimGroup... I'd appreciate it ;)
The problem is that when you host the data is stored in a SimGroup called clientGroup, with each connection being added to that SimGroup. When you host a server that's no big deal as you have access to that information. When you connect to another server you don't have anything in that SimGroup.
What you do have is a SimGroup named PlayerListGroup stored in the ClientConnectionGroup that stores pretty much the same information as that stored in the clientGroup SimGroup.... except each "record" is a ScriptObject. But for the life of me I can't figure out how to access that information without resorting to scripting, which would require me to re-write the PlayerListGroup functions to support indexing of some kind.
So if anyone has or does know how to access the properties of a ScriptObject that is the member of a SimGroup, that is itself the member of a SimGroup... I'd appreciate it ;)
Torque Owner Olafur Osvaldsson
After that the client can ask for the guid list or player list at any time.
Dunno if that helps...
Oli