JPTRON Posted May 15, 2020 Share Posted May 15, 2020 Hello. This is my first time modding a character for Don't Starve Together and I want to drain sanity instead of gaining while sleeping. I have no clue how to do it, any ideas? Thank you. Link to comment https://forums.kleientertainment.com/forums/topic/118257-char-mod-drain-sanity-while-sleeping/ Share on other sites More sharing options...
rawii22 Posted May 17, 2020 Share Posted May 17, 2020 There's probably a sanity aura that's activated in the tent prefab you can check out. Maybe you can add a prefab post init that puts in a different sanity aura value... Link to comment https://forums.kleientertainment.com/forums/topic/118257-char-mod-drain-sanity-while-sleeping/#findComment-1334369 Share on other sites More sharing options...
Cunning fox Posted May 21, 2020 Share Posted May 21, 2020 (edited) inst.components.sanity.custom_rate_fn = function(inst) if inst:HasTag("sleeping") then return -1 end return 0 end Edited May 21, 2020 by Cunning fox 1 Link to comment https://forums.kleientertainment.com/forums/topic/118257-char-mod-drain-sanity-while-sleeping/#findComment-1335343 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now