How do you decrease the distance a player can see?

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear! I want to make it so the player can only see a certain distance in front of them.

  2. What is the issue? I don’t know how to do this.

  3. What solutions have you tried so far? I looked on the DevHub and the DevForum.

So, I’m making a horror game, and I want to make it dark on the client side so some players can see further in front of them than others. I want something like the game Piggy
Where most players can’t see very far in front of them, but one player can. How would I achieve this?

1 Like

Use the Lighting instance’s Fog variable. It changes the distance a player can see before being blocked off by a color.

4 Likes

Would I just change it on the client side to make it different for each person?

1 Like

Yes! It is possible to change it on the client.

1 Like

Oh wait, for some reason I don’t see it now.

Did you make sure that your Lighting does not have an Atmosphere instance? Having one will remove the fog option.

3 Likes

Oops! Just got rid of it. Thank you!