Difference between revisions of "FQuestDelayTime"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>DragoonWraith
m (stupid case-sensitive links)
imported>Haama
(Clarified?)
Line 1: Line 1:
;fQuestDelayTime :fQuestDelayTime is a float variable that must be declared in any script that uses it. Oblivion uses the variable to determine how often a [[Quest scripts|quest script]] will run - a Quest script with fQuestDelayTime set to 1 will run every second. 0.5 will run twice a second (every half second). If fQuestDelayTime is set to run more quickly than the frame-rate, then the script will run once per frame. The default value is 5.
;fQuestDelayTime :fQuestDelayTime is a special float variable used by [[Quest scripts|quest script]] to determine how often the script should run. It must be declared in each quest script that you want to use it in, and can be set like any other variable ('''set fQuestDelayTime to .01'''). The variable unit is in seconds, so if you set it to 1 the script will run once every second0.5 will run twice a second (every half second), etc. but will never run more than once a frame. If fQuestDelayTime is 0 (or undeclared) the script will run every 5 seconds (default value).


[[Category: Glossary]]
[[Category: Glossary]]

Revision as of 22:04, 10 February 2008

fQuestDelayTime
fQuestDelayTime is a special float variable used by quest script to determine how often the script should run. It must be declared in each quest script that you want to use it in, and can be set like any other variable (set fQuestDelayTime to .01). The variable unit is in seconds, so if you set it to 1 the script will run once every second, 0.5 will run twice a second (every half second), etc. but will never run more than once a frame. If fQuestDelayTime is 0 (or undeclared) the script will run every 5 seconds (default value).