Best method to get the current (scene) time
by Alexander Bierbrauer · in Torque Game Builder · 05/19/2006 (9:54 am) · 2 replies
Hey there,
what's the best method to get the scene time ?? something like the win32 api function to get the current tick time. I don't care in what format, seconds, ms or whatever it is. I just need such a function. In the docs is the debug banner mention... there's "SceneTime" but it seems that it is only available when the debug mode is on.
I don't want a timer or scheduler ! Only the current time of T2D in the scene....
what's the best method to get the scene time ?? something like the win32 api function to get the current tick time. I don't care in what format, seconds, ms or whatever it is. I just need such a function. In the docs is the debug banner mention... there's "SceneTime" but it seems that it is only available when the debug mode is on.
I don't want a timer or scheduler ! Only the current time of T2D in the scene....
Torque Owner Michael Woerister
Example:
function t2dSceneObject::getSceneTime(%this) { return %this.getSceneGraph().getSceneTime(); }EDIT:
The value returned will be a floating-point number represent the time in seconds since the scenegraph was created (and unpaused).