Jump to content

Equippable.SetPreventUnequipping cannot be reversed


ADM
  • Fixed

If an equippable item is set as impossible to unequip with SetPreventUnequipping, it will not be reversible as the replica _preventunequipping is maintained as true :

local function onpreventunequipping(self, equipslot)
    self.inst.replica.equippable:SetPreventUnequipping(true)
end

Steps to Reproduce

Take any equipment,

c_sel().components.equippable:SetPreventUnequipping(true), can't be unequipped, :-D

c_sel().components.equippable:SetPreventUnequipping(false), still can't be unequipped. :?

  • Thanks 1



User Feedback


A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.


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