[dismiss]
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 "GameMode"
Jump to navigation
Jump to search
no edit summary
imported>Scylla |
|||
Line 1: | Line 1: | ||
Script within the gamemode block will be run every frame while the game is in non-menu mode. Most scripts will use this block type exclusively. | Script within the gamemode block will be run every frame while the game is in non-menu mode. Most scripts will use this block type exclusively. | ||
'''Example:''' | |||
<pre> | |||
;sample timer script | |||
scn myScript | |||
float timer | |||
short init | |||
begin GameMode | |||
if init == 0 | |||
;set the timer value | |||
set timer to 25 | |||
set init to 1 | |||
else | |||
if timer > 0 | |||
set timer to timer - getSecondsPassed | |||
else | |||
;code to execute after 25 seconds | |||
endif | |||
endif | |||
end | |||
</pre> | |||
[[Category: Commands]] | [[Category: Commands]] |