Search the Community
Showing results for tags 'chracter'.
Found 1 result
Hello and thank you so much for taking the time to read this! ok so basically my friend and i have been working on a character mod for DST, we've been making loads of progress. Until we wanted to give our character a weapon only she can (Use/Equip/Pickup). i've scoured the web the web and found this piece of code from @DarkXero: the code worked perfectly, made other players drop the item and even said they can't use it. BUT whenever i try to place the weapon into a backpack or chest it immediately crashes the game... i have no idea why... I've been doing my best to try different codes. even using: inst:AddComponent("characterspecific") inst.components.characterspecific:SetOwner("star") but unfortunately still haven't worked. keeps giving me an error: "attempt to index field 'inventory' (a nil value)" Here's my star_axe.lua and client_log.txt can you please take a look at the code and see what it is im doing wrong? Thanks in advance!