Where is serverCmdSelectObject?
by Matthew W · in Torque Game Engine · 03/19/2008 (1:43 am) · 2 replies
Hi.
im trying to find the function serverCmdSelectObject. After searching every .cs file with CodeWeaver it returned 0 results. im trying to go through this object selection resource. In step 2 of this resource Dave Myers writes, "We now need to add a handler to the scripts for PlayGui, which is the script name of our canvas GameTSCtrl. This new method will grab the vector and point and call to a server script function SelectObject."
The call to a server script funcion SelectObject looks like this:
In 3DGPAiO2e on page 237 it says, "When the server recieves a message from the client via the CommandToServer function, it will look in its message handle list, which is a list of functions that have the ServerCmd prefix.."
so 'SelectObject' will turn into serverCmdSelectObject. Where is this function? It doesn't seem to be in my 'TGE_1_5_2' folder?!
matthew
im trying to find the function serverCmdSelectObject. After searching every .cs file with CodeWeaver it returned 0 results. im trying to go through this object selection resource. In step 2 of this resource Dave Myers writes, "We now need to add a handler to the scripts for PlayGui, which is the script name of our canvas GameTSCtrl. This new method will grab the vector and point and call to a server script function SelectObject."
The call to a server script funcion SelectObject looks like this:
commandToServer('SelectObject', %mouseVec, %cameraPoint);In 3DGPAiO2e on page 237 it says, "When the server recieves a message from the client via the CommandToServer function, it will look in its message handle list, which is a list of functions that have the ServerCmd prefix.."
so 'SelectObject' will turn into serverCmdSelectObject. Where is this function? It doesn't seem to be in my 'TGE_1_5_2' folder?!
matthew
Torque 3D Owner JANR
If you have another look, you will see that implementing that function is in step 4 of the resource.
Hope that helps