Defined in:Returns the time elapsed since a script began running.
float GetScriptTime(void) const;
GetScriptTimefunction returns the time elapsed, as a floating-point value measured in seconds, since a script began running. The script time is updated once per frame, so all methods executed during the same frame observe the same script time. During the first frame in which a script is running, the script time is guaranteed to be exactly 0.0.