amazingGob Posted September 11, 2025 Share Posted September 11, 2025 So i want to make a character with asymmetrical hand, and the solution i came up with is to have a tool that the character will always be equipping be the other hand im not sure how to implement it in code though Link to comment https://forums.kleientertainment.com/forums/topic/167941-how-to-make-a-character-that-will-always-have-their-weapon-equipped/ Share on other sites More sharing options...
Kyno Posted September 12, 2025 Share Posted September 12, 2025 I didn't understand it quite well, you want to have an item bounded to the equip slot? if so, you can use: inst.components.equippable:SetPreventUnequipping(true) 1 Link to comment https://forums.kleientertainment.com/forums/topic/167941-how-to-make-a-character-that-will-always-have-their-weapon-equipped/#findComment-1835409 Share on other sites More sharing options...
amazingGob Posted September 12, 2025 Author Share Posted September 12, 2025 2 hours ago, Kyno said: I didn't understand it quite well, you want to have an item bounded to the equip slot? if so, you can use: inst.components.equippable:SetPreventUnequipping(true) it works thank you! however when the character is killed they would drop the equip, is there a way to prevent that? or just delete the item outright when somehow unequiped? Link to comment https://forums.kleientertainment.com/forums/topic/167941-how-to-make-a-character-that-will-always-have-their-weapon-equipped/#findComment-1835431 Share on other sites More sharing options...
amazingGob Posted September 12, 2025 Author Share Posted September 12, 2025 inst.components.equippable:SetOnUnequip(inst.Remove) i tried this code but i get stack overflow error as soon as i unequip Link to comment https://forums.kleientertainment.com/forums/topic/167941-how-to-make-a-character-that-will-always-have-their-weapon-equipped/#findComment-1835480 Share on other sites More sharing options...
Kyno Posted September 12, 2025 Share Posted September 12, 2025 11 hours ago, amazingGob said: . inst.components.inventoryitem.keepondeath = true Link to comment https://forums.kleientertainment.com/forums/topic/167941-how-to-make-a-character-that-will-always-have-their-weapon-equipped/#findComment-1835537 Share on other sites More sharing options...
amazingGob Posted September 12, 2025 Author Share Posted September 12, 2025 22 minutes ago, Kyno said: inst.components.inventoryitem.keepondeath = true thank you sm this is what i was looking for! Link to comment https://forums.kleientertainment.com/forums/topic/167941-how-to-make-a-character-that-will-always-have-their-weapon-equipped/#findComment-1835541 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