THISTINYTHING Posted December 31, 2017 Share Posted December 31, 2017 Hey guys I really need some help with my mod. I want her to gain sanity on attack just like wigfrid. I have read through multiple topics that sorta protein to what I want but none of the codes are helping. And the one that does work I would have to copy and past nearly 72 times to list all the attackable prefabs. Can anyone give me a code? (I bet it's super simple too, I'm just new and dumb) Link to comment Share on other sites More sharing options...
. . . Posted January 1, 2018 Share Posted January 1, 2018 inst:ListenForEvent("onattackother", function(inst, data) inst.components.sanity:DoDelta(1) end) put in YOURCHAR.lua inside the master_postinit Link to comment Share on other sites More sharing options...
THISTINYTHING Posted January 1, 2018 Author Share Posted January 1, 2018 That's it? REALLY??? Ugggggggg! Thank you! <3 <3 Link to comment 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