digging animation on player

Post » Sat Sep 12, 2015 11:21 pm

Hi gang!

I would like to add treasure maps to my co-authored Watchtowers mod, and then have the plaeyr start to dig if he enteres a trigger box with the map. To simulate buried treasure.I have no problem with trigger boxes and the scripting in general.

But I have no clue how to make the player play the digging animation, what commands to use.

i have some vague idea that i need to remove cotrols from the player, play the anmimation, and then restore control to player.

Hoping you can help.

Respectfully

Tony
User avatar
TWITTER.COM
 
Posts: 3355
Joined: Tue Nov 27, 2007 3:15 pm

Post » Sat Sep 12, 2015 10:12 pm

is there a digging animation?

User avatar
mishionary
 
Posts: 3414
Joined: Tue Feb 20, 2007 6:19 am

Post » Sat Sep 12, 2015 3:36 pm

well. i find shovels in skryim, so I assumed. But even the diging with a pick animation would work.
User avatar
Tiff Clark
 
Posts: 3297
Joined: Wed Aug 09, 2006 2:23 am

Post » Sat Sep 12, 2015 8:07 pm

you can use the pickaxing animation. better than nothing, and for skyrim's frozen grounds, a pickaxe might be the better means for digging anyway ,-)

edit: ..and for how to play it, in my lund + lambda mod, i had the player hacking through a floor with a custom scripted pickaxe furniture (which was pre-placed in that case, but you could also PlaceAtMe one) -

but i was new to papyrus when i did that and didn't know better :-), i figure you could just disable player controls and http://www.creationkit.com/PlayAnimation_-_ObjectReference or http://www.creationkit.com/PlayAnimationAndWait_-_ObjectReference (not sure about the pickaxing, might come with an end event) for something a little more efficient...

User avatar
ZzZz
 
Posts: 3396
Joined: Sat Jul 08, 2006 9:56 pm

Post » Sat Sep 12, 2015 9:43 pm

agreed. but how exactly do I code it?

It will be a trigger box that triggers upon entering the box with a treasure map previously found. I know how to set up the trigger box and check for the map.

but not how to force playere to do the pick animation.
User avatar
CHangohh BOyy
 
Posts: 3462
Joined: Mon Aug 20, 2007 12:12 pm

Post » Sat Sep 12, 2015 4:11 pm

There's an animation that's used with the smelter for digging in the charcoal pile and feeding the smelter. For a buried chest maybe pickaxe, then shovel in sequence?

User avatar
Laura-Jayne Lee
 
Posts: 3474
Joined: Sun Jul 02, 2006 4:35 pm

Post » Sat Sep 12, 2015 7:39 pm

Great find Ghastley! This digging is a really nice idea :D

https://picasaweb.google.com/lh/photo/u2mQVEfNOyV37q6sB9F9KL4_d2y6jT9W790jjl5IDCc?feat=directlink

User avatar
April
 
Posts: 3479
Joined: Tue Jun 20, 2006 1:33 am

Post » Sun Sep 13, 2015 12:39 am

wow, right.

100 points and a coupon for a weekend trip to the bermudas for you :_)

User avatar
Chavala
 
Posts: 3355
Joined: Sun Jun 25, 2006 5:28 am

Post » Sun Sep 13, 2015 2:53 am

Ok, but guys, we still need to know how we script it. Actual papyrus code. Either animation is fine. We just need code now.
User avatar
JD FROM HELL
 
Posts: 3473
Joined: Thu Aug 24, 2006 1:54 am

Post » Sat Sep 12, 2015 10:30 pm

Left as an exercise for the reader (as if all that digging wasn't enough exercise). :D

User avatar
Andres Lechuga
 
Posts: 3406
Joined: Sun Aug 12, 2007 8:47 pm


Return to V - Skyrim