39 lines
1.1 KiB
Plaintext
39 lines
1.1 KiB
Plaintext
//Script Name: time_template
|
|
//////////////////////////////////////////
|
|
//Created By: Genisys (Guile)
|
|
//Created On: 8/16/08
|
|
/////////////////////////////////////////
|
|
/*
|
|
Please see the "time_tutorial" script
|
|
for instructions on how to utlize
|
|
the intergals below in scripts.
|
|
*/
|
|
////////////////////////////////////////
|
|
|
|
void main()
|
|
{
|
|
|
|
//////////////CURRENT REAL TIME VARIABLE DEFINITIONS/////////////////
|
|
|
|
//Total # of heartbeats (6 seconds) since the module has started..
|
|
int nMT = GetLocalInt(GetObjectByTag("timekeeper"), "moduletime");
|
|
|
|
//Current time that has passed by since the module started..
|
|
int nHr = GetLocalInt(GetObjectByTag("timekeeper"), "MODHR");
|
|
int nMin = GetLocalInt(GetObjectByTag("timekeeper"), "MODMIN");
|
|
int nSec = GetLocalInt(GetObjectByTag("timekeeper"), "MODSEC");
|
|
|
|
int nTotalSec = nMT*6; //(Total Time Passed In Seconds)
|
|
int nTotalMin = nTotalSec/60; //(Total Time Passed In Minutes)
|
|
///////////////////////////////////////////////////////////////////
|
|
|
|
//Declare your Major Variables here...
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////
|
|
|
|
//Enter your Script's Main Functions Here
|
|
|
|
|
|
}
|