4
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

40 lines
717 B

Scriptname _00E_EnDisObjectsOnTriggerEnter extends ObjectReference
ObjectReference Property ObjectRef Auto
Actor Property PlayerREF Auto
GlobalVariable Property GameHour Auto
GlobalVariable Property TimeScale Auto
int doOnce
int GameHourInt
Event OnTriggerEnter(ObjectReference akActionRef)
if akActionRef == PlayerREF
ObjectRef.Enable()
if doOnce == 0
TimeScale.SetValue(2000)
while GameHourInt < 21
GameHourInt = GameHour.GetValueInt()
;Debug.Notification("GameHourSet")
endwhile
if GameHourInt == 21
TimeScale.SetValue(0.1)
endif
else
return
endif
endif
EndEvent
Event OnTriggerLeave(ObjectReference akActionRef)
if akActionRef == PlayerREF
ObjectRef.Disable()
endif
EndEvent