so im making an RPG and i know pretty much nothing about lua :/ using free scripts form model shop and i found this for fog/view distance
if true then
game.Lighting.FogEnd = ("1000")
end
works perfect but how can i make it change for somone when they touch a brick.
to set the scene i have a desert level so i want the fog set at 1000 but when they enter my swampy level is there a way so when they touch a brick it sets their fog to say 250? so that it simulates a swampy foggy hardish to see landscape
sorry for not knowing much :/

1 comment
Watching a tutorial for creating an ontouched brick would be a good place to start learning lua. (This is a beginner script)