Jump to content

Recommended Posts

I'm in the process of creating a character mod (my first one!) and I'm trying to make armour non equippable for the character. I have a couple of questions on how to do that:

1) Can I just cycle through the existing items and use an "if component" and set "inst.components.equippable.equipslot" to NIL so that it can't be equipped? Or is there a way I can remove the equippable component?

For example this for setting the equipslot to NIL:

if inst.components.armor then
	inst.components.equippable.equipslot = NIL
end

2) If the above is possible (or if there's another way to make items not equippable), how would that work if I wanted the character to be compatible for DST

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