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 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 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 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.