25 lines
765 B
Plaintext
25 lines
765 B
Plaintext
Scriptname _00E_BedScript extends ObjectReference
|
|
{Magically bypasses the whole waiting/resting-system thingy}
|
|
|
|
Quest Property MQ14 Auto
|
|
Message Property _00E_MQ14_CantRestNowMessage Auto
|
|
Actor Property PlayerREF Auto
|
|
|
|
Bool bActivationBlocked = False
|
|
|
|
Event OnActivate(ObjectReference akActionRef)
|
|
If akActionRef == PlayerREF && _00E_PlayerhousingMaster.ReferenceCanBeActivated(Self) && bActivationBlocked == False
|
|
bActivationBlocked = True
|
|
|
|
If MQ14.GetCurrentStageID() < 20
|
|
Game.SetInChargen(False, False, False)
|
|
Self.Activate(PlayerREF, True)
|
|
Game.SetInChargen(False, True, False)
|
|
Else
|
|
_00E_MQ14_CantRestNowMessage.Show()
|
|
EndIf
|
|
|
|
bActivationBlocked = False
|
|
EndIf
|
|
EndEvent
|