Introduction
TorqueScript is the scripting language of the Torque 3D game engine. It is used to define game objects and to create the rules of play. It also forms the basis for manipulating the GUI system of Torque 3D.
All TorqueScript files have a
.cs
extension. These files may be edited with a standard text editor, or a program such as Torsion, which was made for working with TorqueScript. TorqueScript files may also be precompiled into .dso
files. This is a binary representation of the TorqueScript code, and prevents others from modifying it. Very often a game will ship with only the precompiled .dso
files.
In this chapter we will learn about some important‑‑and often lesser known‑‑TorqueScript concepts and shortcuts. Let's jump right in!