<syntaxhighlight lang="lua">
time = ScenEdit_CurrentTime() -- returns the time in the scenario
</syntaxhighlight>