Jump to content

Negative Sanity Aura from Modded Item that has Sanity Aura


Recommended Posts

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:
image.thumb.png.9cf6bd4084e1ce8e15f7f997f20d76e0.png

Any ideas?

Link to comment
Share on other sites

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.

×
  • Create New...