Game Development Community

Ghost ID

by TigerHeros · in Torque 3D Professional · 08/17/2010 (10:50 am) · 1 replies

Hi All


In My Project. I want to display the Object Name.

I dont want use Container Ray Cast Function.

Could any one Help me how to resolve the ghosted ID of the object through the NetConnection object.


Thanks in Advance.

#1
08/17/2010 (1:14 pm)
on the client you can use ServerConnection.getGhostId( %ghostId ), on the server you use %conn.resolveObjectFromGhostIndex( %ghostId ).

But be aware that the object name is not ghosted to the client, only visible on the server.
You could send a command to the server to return the name to the requesting client. Use the commandToServer / commandToClient functions for it.