Enderal SE https://mod.pub/enderal-se/38-enderal-se
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
899 B
25 lines
899 B
3 years ago
|
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
|