Jump to content

Recommended Posts

i have a question does anyone know how to lower a charecters insanity when he is mining/chopping 

i have tried this:

--lose sanity when mining
inst:ListenForEvent("mine", function (inst, data)
inst.components.sanity:DoDelta(-TUNING.SANITY_MED)
    end)
--lose sanity when chopping
inst:ListenForEvent("chop", function (inst, data)
inst.components.sanity:DoDelta(-TUNING.SANITY_MED)
    end)
but it doesnt seem to word

i have a question does anyone know how to lower a charecters insanity when he is mining/chopping 

i have tried this:

--lose sanity when mining

inst:ListenForEvent("mine", function (inst, data)

inst.components.sanity:DoDelta(-TUNING.SANITY_MED)

    end)

--lose sanity when chopping

inst:ListenForEvent("chop", function (inst, data)

inst.components.sanity:DoDelta(-TUNING.SANITY_MED)

    end)

but it doesnt seem to word

 

Did you put that where the character traits belong to? (near the end of the character file)

 

Also, med is a lot for a singular chop.

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