Allowing other network-based services to communicate with Torque 3D is important for some game types to pass external data to the game server. In this recipe, we will learn how to have Torque 3D act as a server and listen for connections.
We will be using a project based on the Torque 3D's
Full template, using the
Empty Terrain level. If you haven't already, use the Torque Project Manager (
Project Manager.exe) to create a new project from the
Full template; it will be found under the
My Projects directory. After that, start your favorite script editor, such as Torsion, and let's get going!
In the following steps, we will build an object that will listen for external network connections on a particular ...