Difference between revisions of "Complete Example Scripts"
Jump to navigation
Jump to search
m
→Enable/Disable an object on a schedule: Oops. Fredas
imported>JustinOther |
imported>JustinOther m (→Enable/Disable an object on a schedule: Oops. Fredas) |
||
Line 757: | Line 757: | ||
If bEnableStuff != (fTime > fHourToEnable && fTime < fHourToDisable) | If bEnableStuff != (fTime > fHourToEnable && fTime < fHourToDisable) | ||
bEnableStuff = !bEnableStuff | bEnableStuff = !bEnableStuff | ||
If bEnableStuff && GetDayOfWeek() == 5 ; | If bEnableStuff && GetDayOfWeek() == 5 ; Fredas | ||
kYourObject.Enable() | kYourObject.Enable() | ||
Else | Else |