Cagealicous Posted January 21, 2019 Share Posted January 21, 2019 So, I'm having a problem trying to make my character have a negative sanity aura around a modded prefab that has a sanity aura. My code is like this: AddPrefabPostInit("tobi", function(inst) if GetPlayer().prefab == "ethan" then inst:AddComponent("sanityaura") inst.components.sanityaura.aura = -TUNING.SANITYAURA_LARGE end end) This was placed in modmain.lua. And I got this error: Any ideas? Link to comment Share on other sites More sharing options...
CarlZalph Posted January 22, 2019 Share Posted January 22, 2019 I think in regular DS you will still need to use 'GLOBAL.' to index that TUNING table. "GLOBAL.TUNING.SANITYAURA_LARGE" would be what you want. Link to comment Share on other sites More sharing options...
Cagealicous Posted January 25, 2019 Author Share Posted January 25, 2019 Well, I realized that this is for Don't Starve. It was supposed to be for Don't Starve Together. 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.