Where to report Documentation Errors?
by Simon Jensen · in Torque Game Builder · 12/13/2007 (6:17 pm) · 1 replies
Is there a specific person we can email / contact when we find errors in the TGB docs?
Current example
The arguments are in the wrong order. It should be:
schedule(%time, %object, %function, [%parameterXX...]);
This is in the
TorqueGameBuilder-1.5.1/documentation/content/documentation/Component%20Tutorials/Scripting/Scheduling%20Events.html
Document.
Current example
Scheduling Events The TorqueScript schedule() function lets you set up events for later. There are two very similar versions of this function: a global function version and an object method version. The base syntax for each is in Code Sample 1. //GLOBAL schedule(5000, "spawnBadGuys", BadGuySpawner, 6, 3); //METHOD BadGuySpawner2.schedule(5000, "spawnBadGuys", 6, 3); Code Sample 1 Both of the examples schedule a "spawn bad guys" event. Let's look at the global function version first. 1. The first argument, 5000, is the number of milliseconds to delay the event for, so the bad guys will be spawned in 5 seconds. 2. The second argument is the name of the function to be called. 3. The third argument is the name of a reference object. If you specify an object in this argument, when the event is about to happen, Torque will check to make sure that object still exists. If the reference object does not exist at the scheduled time, the event will be skipped. If you do not want a reference object test, simply put 0 in this argument. 4. All further arguments are passed to the scheduled function. In the fictitious example function, perhaps the 6 and 3 arguments represent the number of rows and columns of enemies to create.
The arguments are in the wrong order. It should be:
schedule(%time, %object, %function, [%parameterXX...]);
This is in the
TorqueGameBuilder-1.5.1/documentation/content/documentation/Component%20Tutorials/Scripting/Scheduling%20Events.html
Document.
Torque 3D Owner Matthew Langley
Torque