ScriptState::GetScriptTime
Defined in:
Returns the time elapsed since a script began running.
C4Scripts.h
Prototype
float GetScriptTime(void) const;
Description
The GetScriptTime
function 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.