Jump to content

Recommended Posts

I recently decided to try modding Don't Starve and after following Malacaths handslot equipable item tutorial I ran into a problem that I cannot for the life of me solve, even after 2 hours of Forum and Google searches I couldn't even find anyone with the same problem as me.

My item works find in most cases, I see the item on the ground, in the inventory and while its equipped.
However, whenever I make my character attack while holding this item, both the item and the arm the character is holding the item with
disappears for the duration of the attack, and become visible again once the attack animation has finished playing.

I've spendt quite a while making sure everything from my folder structure to my Build names are correct, I've even redone the entire mod from scratch multiple times in hopes that I'd avoid whatever causes the issue, but I still experience it every time I attack with the weapon.
 

Broken Item Mod.zip

2 hours ago, Mobbstar said:

The arm disappears too, thus it is most certainly a state issue.

Either add the "nopunch" tag or the "weapon" component.

inst:AddTag("name")
inst:AddComponent("name")

I was hoping there was a way without having to add the weapon component, and the nopunch tag was exactly what I needed.
Thanks a bunch.
 

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