enderalse/source/scripts/_00e_mq11c_invisibilitytriggersc.psc

25 lines
899 B
Plaintext

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.GetStage() >= 35 && MQ11c.GetStage() < 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