Tes3Mod:GetSecondsPassed

The UESPWiki – Your source for The Elder Scrolls since 1995
Jump to: navigation, search


GetSecondsPassed

                GetSecondsPassed

        Type:   Time

     Returns:   float

     Example:   set TimePassed to ( TimePassed + GetSecondsPassed )

     Scripts:   Akula_doors
                Bardoor

Returns the time in seconds since the script was last run. Very useful for timing events in scripts, for example:

begin TestTimeScript
        float TimePassed

        set TimePassed to (TimePassed + GetSecondsPassed)

        if ( TimePassed > 10 )
                MessageBox "Displayed every 10 seconds"
                set TimePassed to 0
        endif
end