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.
 
 
 

32 lines
569 B

Scriptname _00E_MQ01_SetStageOnActivateSit extends ObjectReference
Import Utility
Event OnInit()
Self.BlockActivation(True)
EndEvent
Event OnActivate(ObjectReference akActionRef)
if (akActionRef == PlayerREF) && (MQ01.GetStage() == 30)
if PlayerREF.IsEquipped(Torch01)
PlayerREF.UnequipItem(Torch01)
EndIf
Self.Activate(PlayerREF, True)
Game.DisablePlayerControls(true, true, false, false, true, false, false, true)
MQ01.SetStage(32)
EndIf
EndEvent
actor Property PlayerRef Auto
Quest Property MQ01 Auto
Light Property Torch01 Auto