Jump to content

Call Function on tool breaking?

Recommended Posts


I recently started learning how to mod for Don't Starve Together, and after looking at some tutorial and other mods, I started making my own.

The issue I am having is I cannot find the event that triggers when a tool breaks (such as a pickaxe, axe, shovel, etc, any tool that's held in the hand).

So far, I have this:

inst:ListenForEvent("working", brokentoolsanity)

i inserted "working" as a temporary measurement to make sure the function "brokentoolsanity" was actually being called and works (and indeed it does).

Can anyone help me find the reference for when a tool breaks?

Link to comment
Share on other sites

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...