Jump to content

Sanity Effect Range


Recommended Posts

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 by Akari_Sora
Link to comment
Share on other sites

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 by Ultroman
Link to comment
Share on other sites

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

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
 Share

×
×
  • Create New...