How to become an admin on a server
Torque 3D supports one or more players having special administrative powers on a multiplayer server. A Torque 3D game server doesn't define what these powers are by default, but does provide a framework we may use for our own games.
In this recipe, we will learn how to make a player an administrator and what this title means on the server.
Getting ready
We will be making TorqueScript changes in 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. Give this project a name of MyGame
. It will be found under the My Projects
directory. After that, start your favorite script editor, such as Torsion, and let's get going!
How to do it...
In the following steps, we will allow a player to connect as an administrator to a dedicated server:
Open
core/scripts/server/defaults.cs
, and modify$Pref::Server::AdminPassword
to...