seronis Posted November 6, 2013 Share Posted November 6, 2013 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). Link to comment https://forums.kleientertainment.com/forums/topic/29433-stuck-figuring-out-how-to-call-a-tool-animation/ Share on other sites More sharing options...
Malacath Posted November 6, 2013 Share Posted November 6, 2013 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. Link to comment https://forums.kleientertainment.com/forums/topic/29433-stuck-figuring-out-how-to-call-a-tool-animation/#findComment-362875 Share on other sites More sharing options...
seronis Posted November 6, 2013 Author Share Posted November 6, 2013 Ah thanks I hadnt messed with SGs yet and was looking through the various tool prefab files trying to find the answer. Link to comment https://forums.kleientertainment.com/forums/topic/29433-stuck-figuring-out-how-to-call-a-tool-animation/#findComment-362880 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now