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.
 
 
 

25 lines
917 B

Scriptname _00E_MQ11c_InvisibilityTriggerSC extends ObjectReference
{This script is to prevent the player using invisibility to bypass the last guard in Dal'Geyss' house in MQ11c}
Event OnTriggerEnter(ObjectReference akActionRef)
If akActionRef == PlayerREF && (MQ11c.GetCurrentStageID() >= 35 && MQ11c.GetCurrentStageID() < 50)
_00E_MQ11c_PlayerDetected.SetValueInt(1)
MQ11c.UpdateCurrentInstanceGlobal(_00E_MQ11c_PlayerDetected)
UIActivateFailM.Play(PlayerREF)
_00E_MQ11c_StealthMinigame_PlayerCaught02.Show()
PlayerREF.MoveTo(DebugPlayerStartMarker)
If !PlayerREF.IsSneaking()
PlayerREF.StartSneaking()
EndIf
EndIf
EndEvent
Actor Property PlayerREF Auto
GlobalVariable Property _00E_MQ11c_PlayerDetected Auto
Sound Property UIActivateFailM Auto
Message Property _00E_MQ11c_StealthMinigame_PlayerCaught02 Auto
ObjectReference Property DebugPlayerStartMarker Auto
Quest Property MQ11c Auto