C4 Engine
C4 Engine API Documentation

ScriptState::GetScriptTime

Defined in:  C4Scripts.h
Returns the time elapsed since a script began running.
Prototype

float GetScriptTime(voidconst;

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.