Jump to content

Issue with mod code


Recommended Posts

So I've been trying to make it so that when my character has any amount of wetness they get a very large sanity drain I have the code working but it's not a big enough drain and it only activates at more than 55 wetness.

here's my code

local function NAMEHERE(args)
    if(inst.components.moisture:GetMoisture() > 0)
    then
        inst.components.sanity.dapperness = -(Huge)
    else
        inst.components.sanity.dapperness = 0
    end
end

how do I make it work how I want it to?

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...