Jump to content

Small script help


ACSputnik

Recommended Posts

Trying to get an animation to play when a player activates the object, in this case a wall in the mine and I'd like it to play the mining animation.

 

Here is a snippet of what I have

 

Event OnActivate(ObjectReference akActionRef)
       Game.GetPlayer()
       Player.PlayAnimation("AnimObjectPickAxeWall")
       utility.wait(2.0)
Debug.Messagebox("You have broken through to the other side of the cave!")
endEvent

 

This works for the 2nd part, the message box pops up with the text and thats it but the animation doesn't get played. I tried removing the wait and the message box pops up instantly but still no animation.

 

Anyone know whats wrong with the syntax or perhaps the wrong animation?

Link to comment
Share on other sites

Made a bit of progress on this, I'm able to use the console to make my character perform the mining action

 

SendAnimationEvent idlePickaxeEnter

(or just SAE )

 

but papyrus won't allow SAE or even SendAnimationEvent. Also once I use SAE on myself or another Actor I am unable to stop them, even using SAE idleStop_loose.

 

the search continues. Perhaps someone knows something or can look into this?

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...