Using Object Reference Interval: Difference between revisions

Jump to navigation Jump to search
imported>Langerz82
imported>Langerz82
Line 9: Line 9:


<source lang="papyrus">
<source lang="papyrus">
Float Property fCheckActiveInterval Auto ; Desired Update check time/5.0 ex.
Bool Property useLooking Auto ; Should we take into account Line of Sight or not.
Int Property fMinutesInterval Auto ; Desired Minutes Interval /10.0 (minutes) ex.
Int Property fMinutesInterval Auto ; Desired Minutes Interval /10.0 (minutes) ex.
GlobalVariable Property GameHour Auto ; The Games Hour leave default.
GlobalVariable Property GameHour Auto ; The Games Hour leave default.
</source>
</source>


* fCheckActiveInterval - This property is how often the script is going to check the users interval measured in real-time seconds.
* useLooking - Set to TRUE if you want the interval to occur only when its in the players view.
* fMinutesInterval - How many minutes can pass before the OnTimeElapsed Overridden function will get called.
* fMinutesInterval - How many minutes can pass before the OnTimeElapsed Overridden function will get called.


Line 37: Line 37:
+ at specified intervals.
+ at specified intervals.
+ The Properties for this examples should be set too:
+ The Properties for this examples should be set too:
+ fCheckActiveInterval = 3.0 ; Every one minute game time check the interval.
+ useLooking = TRUE ; We only want the interval to occur when in view.
+ fMinutesInterval = 5.0 ; Every five minutes in game time call OnTimeElapsed.
+ fMinutesInterval = 5.0 ; Every five minutes in game time call OnTimeElapsed.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++/;
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++/;
Line 63: Line 63:
* Attach it to an object for example a box or door you wish to use as an example.
* Attach it to an object for example a box or door you wish to use as an example.
* Set the following Properties for the script.
* Set the following Properties for the script.
[[File:jlLockInterval.jpg|650px]]
[[File:jlLockInterval.jpg|700px]]


* Save the Mod file and run and test in-game.
* Save the Mod file and run and test in-game.
Anonymous user

Navigation menu