2021-10-05 22:15:58 +00:00
|
|
|
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)
|
|
|
|
|
2024-01-10 14:08:24 +00:00
|
|
|
If akActionRef == PlayerREF && (MQ11c.GetCurrentStageID() >= 35 && MQ11c.GetCurrentStageID() < 50)
|
2021-10-05 22:15:58 +00:00
|
|
|
_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
|