Using Object Reference Interval: Difference between revisions
Jump to navigation
Jump to search
→Instructions
imported>Langerz82 |
imported>Langerz82 |
||
| Line 9: | Line 9: | ||
<source lang="papyrus"> | <source lang="papyrus"> | ||
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> | ||
* | * 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: | ||
+ | + 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| | [[File:jlLockInterval.jpg|700px]] | ||
* Save the Mod file and run and test in-game. | * Save the Mod file and run and test in-game. | ||