enderalse/source/scripts/_00e_bedscript.psc

25 lines
756 B
Plaintext
Raw Normal View History

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.GetStage() < 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