Skip to documentation
SplitScript
  • Language
  • Standard library
  • Guides
  • Migration

SplitScript reference / Language / gameTime

gameTime

lifecycle block

gameTime { ... }

Reports the current game time when known.

Falling through returns None so the runtime leaves the current game time unchanged.

Examples

Use gameTime

gameTime {
    return Duration.fromSeconds(current.gameTime)
}
Generated from the SplitScript compiler's documentation catalogs.