enderalse/source/scripts/_00e_bedscript.psc

25 lines
765 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
2024-01-10 14:08:24 +00:00
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