NeddoFreddo Posted July 7, 2022 Share Posted July 7, 2022 (edited) Hey So for a modded character I'm making, I want to add extra inventory slots that can only accept the character's extra items. (The character's gameplay loop involves carrying around a lot of extra stuff (mostly crafting ingredients) so I thought this would be fair.) However, I've heard that adding a custom widget is a giant pain, so I instead opted to add the 'container' component to my character. Although it's hacky and a bit silly, it works! (mostly) The container shows up in game as expected, opens automatically when the character is spawned/revived and closes when they die. However, I've been having a strange issue with storing items in the container. It technically works - it only accepts items with the filter tag and correctly holds them. The problem is it seems to be intrinsically 'linked' to the first three inventory slots that the character has. If there's something in the respective inventory slots, and I put something in the container slots, it will 'overwrite' the item in the inventory. (see below video for context) https://www.youtube.com/watch?v=uhfoJBFI7B8 Overall, it's pretty weird but I think I understand what the problem is - I need to add some extra slots to the character that are hidden by default, and 'link' them to the container. Only problem is I have no idea how to do that - seeing as I never 'linked' the container to the inv in the first place. Any help is appreciated - there are also some other 'small' problems (container component refuses to use custom images for the inventory slots, it only likes basegame ones) Mod .zip is attached below (sorry for large size, it still has some photoshop files and whatnot in there) Cheers! _tvheadguy-clean.zip Edited July 7, 2022 by NeddoFreddo Link to comment https://forums.kleientertainment.com/forums/topic/141538-help-adding-container-component-to-character/ 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