From 421e4b84ffa063c122b51700d6ef3a4834585173 Mon Sep 17 00:00:00 2001 From: Eddoursul Date: Tue, 6 Aug 2024 15:28:15 +0200 Subject: [PATCH] Allow opening container in _00E_NQ_G_06_ChestActivationEvent --- scripts/_00e_nq_g_06_chestactivationevent.pex | Bin 1198 -> 1305 bytes .../_00e_nq_g_06_chestactivationevent.psc | 15 +++++++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/scripts/_00e_nq_g_06_chestactivationevent.pex b/scripts/_00e_nq_g_06_chestactivationevent.pex index 27251b5b693456a001c3090cb11e66691e5160ca..5f7ab80e5b4b52ebfc3ca5244207b9aad75aa1a8 100644 GIT binary patch delta 595 zcmY*V$xgyh6g{`CRtBL&6bBqot967pB!9k`N%PA=Ni%QXbrua!KwE}s+ z zVu;s1PRTJsoY2om7PW4|FxNRd@+S+41*4+g95l!@bh6$vE?SPk2Nem7V}j=-`__4i zE2c0F*|6L1HS`Xoa(Sp< z42ou5P;>68(bt9!w*_xaAD(E&jgCNbpxyTNyN0gyuFVNeWM`K<^G(<&DG2?0!%+AN zkO*GbZ=e^mB<{v$Y$S1e4t@vt%#pbM=t0CLEXe|7co65DKoBZN5{pQ2M0rdJ5#j`2 zn2_LE22603h;oShWulLu5&|}@{^`17ge3yANo&|DQsO2T#D*+OGX7CIhOQvHxrv3# z1ceZt3e8W~S`#8~v|{;Ki?1Th*;-QM;S6Ek8D@tp_nFQ8V)>iW$lL0v1HUW#4MGP& AF8}}l diff --git a/source/scripts/_00e_nq_g_06_chestactivationevent.psc b/source/scripts/_00e_nq_g_06_chestactivationevent.psc index a3dbe1d6..5d5895e1 100644 --- a/source/scripts/_00e_nq_g_06_chestactivationevent.psc +++ b/source/scripts/_00e_nq_g_06_chestactivationevent.psc @@ -11,10 +11,17 @@ endEvent Event OnActivate(ObjectReference akActionRef) - if akActionRef == PlayerREF && !bDone && _00E_NQ_G_SidedMael.GetValue() == 1 - bDone = true - NQ_G_06.SpawnKileans() - EndIf + if akActionRef == Game.GetForm(0x14) + + Activate(akActionRef, true) + Utility.Wait(0.1) + + if !bDone && _00E_NQ_G_SidedMael.GetValueInt() == 1 + bDone = true + NQ_G_06.SpawnKileans() + EndIf + + endif EndEvent