Changed folder name.
Changed folder name.
This commit is contained in:
38
_module/nss/time_template.nss
Normal file
38
_module/nss/time_template.nss
Normal file
@@ -0,0 +1,38 @@
|
||||
//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
|
||||
|
||||
|
||||
}
|
Reference in New Issue
Block a user