Complete Example Scripts: Difference between revisions
Jump to navigation
Jump to search
m
→Enable/Disable an object on a schedule
imported>JustinOther |
imported>JustinOther |
||
| Line 714: | Line 714: | ||
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 ; Desired enable time/6.0 for example's sake | Float Property fHourToEnable Auto ; Desired enable time/6.0 for example's sake | ||
Float Property fUpdateInterval Auto ; 15.0 works well | 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 | ||
ObjectReference Property kYourObject Auto ; Pointed to your statue or object that is to enable | ObjectReference Property kYourObject Auto ; Pointed to your statue or object that is to enable | ||
| Line 732: | Line 732: | ||
Event OnLostLOS(Actor akViewer, ObjectReference akTarget) | Event OnLostLOS(Actor akViewer, ObjectReference akTarget) | ||
RegisterForSingleLOSGain(PlayerREF, Self) | RegisterForSingleLOSGain(PlayerREF, Self) | ||
UnregisterForUpdate() | UnregisterForUpdate() ; Stop polling | ||
ToggleEnableStateIfApplicable() | ToggleEnableStateIfApplicable() | ||
EndEvent | EndEvent | ||