2021-10-05 22:15:58 +00:00
|
|
|
Scriptname _00E_BedScript extends ObjectReference
|
|
|
|
{Magically bypasses the whole waiting/resting-system thingy}
|
|
|
|
|
2021-10-12 02:10:35 +00:00
|
|
|
Quest Property MQ14 Auto
|
|
|
|
Message Property _00E_MQ14_CantRestNowMessage Auto
|
|
|
|
Actor Property PlayerREF Auto
|
|
|
|
|
|
|
|
Bool bActivationBlocked = False
|
2021-10-05 22:15:58 +00:00
|
|
|
|
|
|
|
Event OnActivate(ObjectReference akActionRef)
|
2021-10-12 02:10:35 +00:00
|
|
|
If akActionRef == PlayerREF && _00E_PlayerhousingMaster.ReferenceCanBeActivated(Self) && bActivationBlocked == False
|
|
|
|
bActivationBlocked = True
|
2021-10-05 22:15:58 +00:00
|
|
|
|
2021-10-12 02:10:35 +00:00
|
|
|
If MQ14.GetStage() < 20
|
2021-10-05 22:15:58 +00:00
|
|
|
Game.SetInChargen(False, False, False)
|
|
|
|
Self.Activate(PlayerREF, True)
|
|
|
|
Game.SetInChargen(False, True, False)
|
|
|
|
Else
|
|
|
|
_00E_MQ14_CantRestNowMessage.Show()
|
|
|
|
EndIf
|
|
|
|
|
2021-10-12 02:10:35 +00:00
|
|
|
bActivationBlocked = False
|
|
|
|
EndIf
|
2021-10-05 22:15:58 +00:00
|
|
|
EndEvent
|