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 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 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 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 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 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 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.