Please see the FAQ on how to use UDFs. Also, strat with re-creating some of Glenn's samples before you move on to coding your own scripts, this will help you understand how to use tcLib. and for smaller tasks you can always use the ScheduleTask UDF, which also schedules tasks but doesn't have all the bells and whistles that glenn offers. Then again, sometimes, simple is sufficient.
_________________________
There are two types of vessels, submarines and targets.