Scheduling allows for an action to occur sometime in the future. In TorqueScript we may have a schedule invoke a function after a specified amount of time has passed. In this recipe we will learn how to schedule a function.
We will be adding a new TorqueScript function to a project based on the Torque 3D
Full template and try it out 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. Then start up your favorite script editor, such as Torsion, and let's get going!
We are going to write a TorqueScript function that will demonstrate how to schedule ...