Akari_Sora Posted October 27, 2018 Share Posted October 27, 2018 (edited) How do you make campfires gives you sanity even if you are far? Like even if you are 10 units away it still give you sanity. Does it have to do with SANITY_EFFECT_RANGE? I don't know how to code it. Edited October 27, 2018 by Akari_Sora Link to comment Share on other sites More sharing options...
Akari_Sora Posted November 2, 2018 Author Share Posted November 2, 2018 anyone? Link to comment Share on other sites More sharing options...
Ultroman Posted November 3, 2018 Share Posted November 3, 2018 (edited) Changing the sanity effect range is way too wide a change. That'll also affect the range within which monsters decrease your sanity. inst.LightWatcher:SetLightThresh(.075) The inst is the player instance, and 0.075 is the default value. This will affect all lightsources. Have fun Edited November 3, 2018 by Ultroman Link to comment Share on other sites More sharing options...
Akari_Sora Posted November 3, 2018 Author Share Posted November 3, 2018 9 hours ago, Ultroman said: Changing the sanity effect range is way too wide a change. That'll also affect the range within which monsters decrease your sanity. inst.LightWatcher:SetLightThresh(.075) The inst is the player instance, and 0.075 is the default value. This will affect all lightsources. Have fun Thank You! 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