Game Development Community

Time of Day usage

by Jeff Yaskus · in Torque 3D Professional · 02/02/2011 (3:09 pm) · 1 replies

The online doc makes no mention of how to use this properly ... or how to query it within the game.

I'm using it to create the night & day cycles.

However, I'm making an outdoor survival game -- and need to "check" every hour to see if player ate or drank.

If they haven't their HUNGER or THIRST attribute will increase. Eventually it will kill them :)

So my questions;
a) how to query time of day from torque Script ?

b) how to add new attributes to player character ? (Hunger, Thirst)

c) How do I script it, so it happens once per hour (or 6 hours,etc.) ? using the schedule command?

#1
02/02/2011 (4:54 pm)
Here is a good thread that de-mystifies the timeOfDay somewhat:
http://www.garagegames.com/community/forums/viewthread/107155/1