3D Rad - Free 3D game maker - Forum

This forum is now archived!

This forum is locked, and is a read-only version. A new community-ran forum can be found at classdev.net

News:

The 3DRad community can be found at classdev.net.

Pages: [1]

Author Topic: simple clock script  (Read 134 times)

« on: May 03, 2014, 09:23:41 PM »
Here is a clock script just link the script to a textprint object and it is ready to use.
Code: [Select]
//Simple Clock Script by Dogtorque////
string Hour;
string Minute;
string Second;
string Milliseconds;
float Time;
void Main()
{
Hour = iSystemTime(4);
Time = iSystemTime(4);
Minute = iSystemTime(5);
Second = iSystemTime(6);
Milliseconds = iSystemTime(7);
//////////////////////////////////////////////////////////////
//OUT_25 = Time; //This is for the fog object but is optional
//OUT_26 = 100 + Time*10;
//////////////////////////////////////////////////////////////
if (Time > 12)
iObjectTextSet(OBJ_0,"Time (" + Hour + ":" + Minute + ":" + Second + ":" + Milliseconds + " PM)");
if (Time < 12)
iObjectTextSet(OBJ_0,"Time (" + Hour + ":" + Minute + ":" + Second + ":" + Milliseconds + " AM)");
}
I be trippin!
Pages: [1]