Sign in to follow this  
TheSkylarr

Armor on a non equippable

Recommended Posts

TheSkylarr    93

Hello! I'm attempting to make a Hat in DST that acts as armor, but only when equipped with a second item in it's custom container slot, that I call a badge.

I've gotten it working to a point where, when I insert the badge into the custom slot, the armor component gets added to the item, but I can't figure out how to make it act as any actual equipped armor would, like a Football helmet, since essentially I want this item to function exactly as a Football helmet would, just in a weird slot.

I was thinking I would have to add some kindof external damage modifier, and use Armor:TakeDamage() to do SOMETHING, but I honestly don't know what to do.

Share this post


Link to post
Share on other sites
TheSkylarr    93

I've figured out a workaround by adding and removing components on the fly to whatever hat the player is wearing at the moment. It works fine, and the other item now acts exactly like armor would.

I'm closing this now, though I would be open to a more elegant solution of actually using the ITEM as armor instead of just whatever they're wearing.

Share this post


Link to post
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
Sign in to follow this