Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how to limit vision when walking into a certain area?

Asked by
pwgth 11
2 years ago
Edited 2 years ago

say my player walks into a certain invisible brick, how could I make it so that his vision is limited while inside it?

edit: I got a good answer but I guess I should've been more specific, think of it as fog.

0
Limited? Like the CameraMaxZoomDistance or the Field of view? Mathilinium 112 — 2y
0
think of it as fog pwgth 11 — 2y

1 answer

Log in to vote
0
Answered by
Speedmask 661 Moderation Voter
2 years ago

if you mean make everything dark, you will have to:

  1. turn off all lighting in that area so it’s pitch black, locally or on the server you can decide
  2. add a light source inside of the character, locally. then it will seem like they can only see a certain distance and the light from other players won’t affect them.
0
I was hoping for something that could make the surroundings foggy, but thanks for giving your take. pwgth 11 — 2y
Ad

Answer this question