Game Development Community

What is RPCToGhostParent

by HoSung,Kim · in Torque Game Engine · 08/09/2006 (10:39 pm) · 2 replies

TNL_IMPLEMENT_NETOBJECT_RPC(Player, rpcPlayerWillMove,
(TNL::StringPtr testString), (testString),

TNL::NetClassGroupGameMask,
TNL::RPCGuaranteedOrdered,
TNL::RPCToGhostParent, 0)
{
TNL::logprintf("Expecting a player move from the connection: %s", testString.getString());
}


above Code What is RPCToGhostParent.
I don't understand.

please explain it.

Thanks.

#1
08/10/2006 (9:43 am)
This allows communication between the ghost parent (on the server) and the ghost (on the client). RPCToGhost allows for the reverse. It is used for NetObjects and derived classes. This is similar to RPCDirClientToServer and RPCDirServerToClient for NetConnections.
#2
08/10/2006 (5:24 pm)
Thank you very much.
Have a nice day.