Verse Library verse

04 Fragment

Retrieves the current countdown value from a timer device and logs it on startup.

verse-library/verse-devices-functions/04-fragment.verse

OnBegin<override>()<suspends> : void =
        # GetActiveDuration hands back a number (the seconds left).
        # We catch it in a named noun so we can use it.
        TimeLeft : float = RoundTimer.GetActiveDuration()
        Print("Seconds left: {TimeLeft}")

Comments

    Sign in to vote, comment, or suggest an edit. Sign in