Schedule(its paremeters go here)
by rennie moffat · in Torque Game Builder · 10/16/2009 (12:34 pm) · 2 replies
Hi, I am just wondering what the parameters are for a schedule. I can not seem to find them. I remeber hearing there are up to six variables and since I have seen some with one, two and three, but am unable to clearly define them, could someone drop some knowledge on a brother and tell me the variables please. Thank you.
About the author
My thanks to Garage Games and the Garage Games Community combined with owned determination I got one game up, Temple Racer and I am looking to build more interesting, fun games for the mass market of the iOS app store.
#2
http://tdn.garagegames.com/wiki/TorqueScript_Console_Functions_10#schedule.28_t_.2C_objID_or_0.2C__functionName.2C_arg0.2C_..._.2C_argN_.29
10/16/2009 (1:54 pm)
Thank you.Quote:
objID.schedule( t , methodName, arg0, ... , argN )
Purpose
Use the objID.schedule method to schedule methodName to be executed with optional arguments at time t (specified in milliseconds) in the future on the object objID. This event is automatically associated with the object objID, and if that object is deleted prior to this event occuring, the event is automatically cancelled.
Syntax
t – The time to wait (in milliseconds) before executing methodName.
objID – An ID to associate this event with.
methodName – An unadorned (flat) function name.
arg0, ... , argN – Any number of optional arguments to be passed to methodName.
Returns
Returns a non-zero integer representing the event ID for the scheduled event.
Note
This is one of those rare cases where a method is described in the function appendix, but it really needed to be defined here for clarity.
See Also
cancel, getEventTimeLeft, getScheduleDuration, getTimeSinceStart, isEventPending, schedule
$Game::Schedule = schedule($Game::EndGamePause * 1000, 0, "onCyclePauseEnd");
http://tdn.garagegames.com/wiki/TorqueScript_Console_Functions_10#schedule.28_t_.2C_objID_or_0.2C__functionName.2C_arg0.2C_..._.2C_argN_.29
Torque 3D Owner Ted Southard