demonio1337 Posted January 25, 2016 Share Posted January 25, 2016 I have an custom armor , but my modded character only have the head , and when i put the armor she stays in the torso what i have to do to make the armor go to the head? Link to comment Share on other sites More sharing options...
Neu7ral Posted January 25, 2016 Share Posted January 25, 2016 Well, I think on the yourarmor.lua should be this local function OnEquip(inst, owner) owner.AnimState:OverrideSymbol("swap_hat", "yourarmorname", "yourarmorname") owner.AnimState:Show("HAT") owner.AnimState:Show("HAT_HAIR") owner.AnimState:Hide("HAIR_NOHAT") owner.AnimState:Hide("HAIR") if owner:HasTag("player") then owner.AnimState:Hide("HEAD") owner.AnimState:Show("HEAD_HAT") end end local function OnUnequip(inst, owner) owner.AnimState:Hide("HAT") owner.AnimState:Hide("HAT_HAIR") owner.AnimState:Show("HAIR_NOHAT") owner.AnimState:Show("HAIR") if owner:HasTag("player") then owner.AnimState:Show("HEAD") owner.AnimState:Hide("HEAD_HAIR") end end on the fn inst:AddComponent("equippable") inst.components.equippable.equipslot = EQUIPSLOTS.HEAD inst.components.equippable.walkspeedmult = (0.95) inst.components.equippable:SetOnEquip(OnEquip) inst.components.equippable:SetOnUnequip(OnUnequip) Link to comment Share on other sites More sharing options...
demonio1337 Posted January 25, 2016 Author Share Posted January 25, 2016 (edited) 2 hours ago, Neutral_Steve said: OK worked , but the armor dont appears in the head , and can i block my character to not put other armors? Edited January 25, 2016 by demonio1337 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now