2021-10-05 22:15:58 +00:00
Scriptname _00E_MQ12c_AniStuckFixSC extends ObjectReference
;This script is basically a failsafe for report ERB-1537. It will prevent the animation stuck on the bed, however the true cause of the bug is still unknown
Event OnTriggerEnter(ObjectReference akActionRef)
2024-01-10 14:08:24 +00:00
If MQ12c.GetCurrentStageID() == 5 && akActionRef == PlayerREF && PlayerREF.IsWeaponDrawn()
2021-10-05 22:15:58 +00:00
PlayerREF.AddItem(GasTrapDummy, 1, 1)
PlayerREF.EquipItem(GasTrapDummy, 0, 1)
Utility.Wait(1)
2024-02-13 09:02:30 +00:00
_00E_EquipControl.SheatheWeapon(PlayerREF)
2021-10-05 22:15:58 +00:00
PlayerREF.RemoveItem(GasTrapDummy, 1, 1)
Self.Disable()
EndIf
EndEvent
Actor Property PlayerREF Auto
Quest Property MQ12c Auto
Weapon Property GasTrapDummy Auto