This wiki is a copy of the original Oblivion CS wiki created and maintained by the UESP.net. See CSwiki:Copy Notice for more info.

Difference between revisions of "IsTimePassing"

Jump to navigation Jump to search
585 bytes added ,  00:24, 3 June 2006
no edit summary
imported>Maturin
 
imported>Phinix
Line 1: Line 1:
Returns 1 if the player is sleeping, resting, or traveling (i.e. time is passing while in menu mode).
Returns 1 if the player is sleeping, resting, or traveling (i.e. time is passing while in menu mode).


'''Example:'''
    if IsTimePassing == 1
        do stuff
    endif
This function is particularly useful inside a [[MenuMode]] block when you want a script to run only if time is passing while the menu is showing.
For example, the following script will return 1 only if the player is actually in the act of sleeping or waiting (otherwise the MenuMode function alone will return 1 anytime the the sleep/wait menu is displayed, even if the player cancels without sleeping or waiting.)
    begin MenuMode 1012
        if IsTimePassing == 1
            do stuff
        endif
    end


[[Category: Functions]]
[[Category: Functions]]
[[Category: Player Functions]]
[[Category: Player Functions]]
[[Category: Condition Functions]]
[[Category: Condition Functions]]
Anonymous user

Navigation menu