Jump to content

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
https://forums.kleientertainment.com/forums/topic/68350-issue-with-mod-code/
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...