Jump to content

Recommended Posts

How can I make the player trigger a specific animation sequence like digging with the shovel or chipping with the pickaxe?  Im trying to polish my rabbit hole mod so that when deploying a rabbit to make a new hole the player must have a shovel equipped (working), the shovel consumes one use (working), and it looks like the player digs the hole (cant figure out).

You'll need to put the player into the digging state via its stategraph like this:

player.sg:GoToState("dig_start")

This should trigger the sequence of animations as it does when digging a whole, I hope it works. You can find all states available in "SGWilson.lua" in the "stategraphs" folder.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...