Difference between revisions of "Complete Example Scripts"
Jump to navigation
Jump to search
m
→Enable/Disable an object on a schedule
imported>JustinOther m (→Enable/Disable an object on a schedule: Oops. Fredas) |
imported>JustinOther |
||
Line 713: | Line 713: | ||
Bool Property bEnableStuff Auto ; Leave as default or 'False' | Bool Property bEnableStuff Auto ; Leave as default or 'False' | ||
Float Property fHourToDisable Auto ; Desired enable time/18.0 for example's sake | Float Property fHourToDisable Auto ; Desired enable time/18.0 for example's sake | ||
Float Property fHourToEnable Auto ; | Float Property fHourToEnable Auto ; Desire d enable time/6.0 for example's sake | ||
Float Property fUpdateInterval Auto ; 15.0 works well and isn't too frantic. | Float Property fUpdateInterval Auto ; 15.0 works well and isn't too frantic. | ||
GlobalVariable Property GameHour Auto ; Pointed to engine maintained, special GlobalVariable | GlobalVariable Property GameHour Auto ; Pointed to engine maintained, special GlobalVariable | ||
Line 765: | Line 765: | ||
EndFunction | EndFunction | ||
Int Function GetDayOfWeek() Global ; 0 : Sundas :: | Int Function GetDayOfWeek() Global ; 0 : Sundas :: 4 : Turdas, etc. | ||
Return ((Game.GetFormFromFile(0x00000039, "Skyrim.ESM") As GlobalVariable).GetValue() As Int) % 7 | Return ((Game.GetFormFromFile(0x00000039, "Skyrim.ESM") As GlobalVariable).GetValue() As Int) % 7 | ||
EndFunction</source> | EndFunction</source> |