Play the mauling animation when werewolf activates a grave
This commit is contained in:
parent
fe429cc105
commit
27946c01a1
Binary file not shown.
@ -13,19 +13,19 @@ endEvent
|
|||||||
Auto State Waiting
|
Auto State Waiting
|
||||||
|
|
||||||
Event OnActivate (ObjectReference akActionRef)
|
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
|
return
|
||||||
endif
|
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
|
If akActionRef.GetItemCount(ShovelKeyword) > 0
|
||||||
TreasureDigger = akActionRef as Actor
|
TreasureDigger = akActionRef as Actor
|
||||||
if TreasureDigger.IsInCombat()
|
if TreasureDigger.IsInCombat()
|
||||||
|
Loading…
Reference in New Issue
Block a user