Thoong Posted November 10, 2014 Share Posted November 10, 2014 The point is, Do i need to add "fueled" component to make it work? Then i try to copy it form "hats" prefab, And it's crash about "generic_perish". Tell me about generic_perish, Where it come form and how to fix it. thank you Link to comment https://forums.kleientertainment.com/forums/topic/43909-hat-that-increase-sanity-when-equip/ Share on other sites More sharing options...
Heavenfall Posted November 10, 2014 Share Posted November 10, 2014 The point is, Do i need to add "fueled" component to make it work? Then i try to copy it form "hats" prefab, And it's crash about "generic_perish". Tell me about generic_perish, Where it come form and how to fix it. thank you No, you do not need fueled component. Link to comment https://forums.kleientertainment.com/forums/topic/43909-hat-that-increase-sanity-when-equip/#findComment-566433 Share on other sites More sharing options...
Thoong Posted November 10, 2014 Author Share Posted November 10, 2014 No, you do not need fueled component.Then show me the code that work, pls.Thank you. Link to comment https://forums.kleientertainment.com/forums/topic/43909-hat-that-increase-sanity-when-equip/#findComment-566520 Share on other sites More sharing options...
Heavenfall Posted November 10, 2014 Share Posted November 10, 2014 inst:AddComponent("dapperness") inst.components.dapperness.dapperness = 5 or if you are running DLC inst.components.equippable.dapperness = 5 Link to comment https://forums.kleientertainment.com/forums/topic/43909-hat-that-increase-sanity-when-equip/#findComment-566591 Share on other sites More sharing options...
Thoong Posted November 10, 2014 Author Share Posted November 10, 2014 inst:AddComponent("dapperness") inst.components.dapperness.dapperness = 5 or if you are running DLC inst.components.equippable.dapperness = 5 OH!! I'm Very Thank you VERY VERY THANK YOU SO MUCH!!!!!!!!!I didn't know about DLC and i just use:inst:AddComponent("dapperness") inst.components.dapperness.dapperness = 5 then its will never works. hahaha thx again. oh last question.should i put all of that in the mod will make it run in any compatible? Link to comment https://forums.kleientertainment.com/forums/topic/43909-hat-that-increase-sanity-when-equip/#findComment-566604 Share on other sites More sharing options...
Heavenfall Posted November 10, 2014 Share Posted November 10, 2014 if IsDLCEnabled(GLOBAL.REIGN_OF_GIANTS) theninst.components.equippable.dapperness = 5else inst:AddComponent("dapperness") inst.components.dapperness.dapperness = 5end Link to comment https://forums.kleientertainment.com/forums/topic/43909-hat-that-increase-sanity-when-equip/#findComment-566632 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