diff --git a/scripts/_00e_treasuremarkerscript.pex b/scripts/_00e_treasuremarkerscript.pex index 35d17988..53b6d937 100644 Binary files a/scripts/_00e_treasuremarkerscript.pex and b/scripts/_00e_treasuremarkerscript.pex differ diff --git a/source/scripts/_00e_treasuremarkerscript.psc b/source/scripts/_00e_treasuremarkerscript.psc index 94e6729c..0fa2da8b 100644 --- a/source/scripts/_00e_treasuremarkerscript.psc +++ b/source/scripts/_00e_treasuremarkerscript.psc @@ -13,19 +13,19 @@ endEvent Auto State Waiting Event OnActivate (ObjectReference akActionRef) - - if akActionRef != PlayerREF + + ; Play the mauling animation in werewolf form + if akActionRef == PlayerREF && PlayerREF.GetRace() == Game.GetFormFromFile(0x2EE47, "Enderal - Forgotten Stories.esm") as Race + Game.DisablePlayerControls(true, true, true, true, true, true, true, true) + Debug.SendAnimationEvent(PlayerREF, "pa_KillWerewolfPairedMaulingWithHuman") + Utility.Wait(4.8) + Self.BlockActivation(False) + Game.EnablePlayerControls() + Self.Activate(PlayerREF) + GoToState("Alldone") return endif - if PlayerREF.GetRace() == Game.GetFormFromFile(0x2EE47, "Enderal - Forgotten Stories.esm") as Race - Message werewolfMessage = Game.GetFormFromFile(0x2F032, "Enderal - Forgotten Stories.esm") as Message - if werewolfMessage - werewolfMessage.Show() - return - endif - endif - If akActionRef.GetItemCount(ShovelKeyword) > 0 TreasureDigger = akActionRef as Actor if TreasureDigger.IsInCombat()