Remember:
"goindoors.lua" it's a option to hide terrain & water, or just one of this.
Examples:
1 - noterrain.lua
-- use one barrel (for example), sett it "alwais active", "Static Mode = No" and "isImmobile = Yes"
-- use "always active" just if you want for active on all of your map. If not, use as a trigger zone !
function noterrain_init(e)
end
function noterrain_main(e)
PlayerDist = GetPlayerDistance(e)
if PlayerDist < 900 then -- change for your desidered distance
HideTerrain(e)
ActivateIfUsed(e)
end
end
2- for "nowater.lua" use the same lua script and just change the "noterrain.lua" (the same "noterrain_init" & "noterrain_main" too)
in "nowater.lua" and "HideTerrain" with "HideWater"
3- for "goindoor" use the both of those (noterrain & nowater)
As example:
-- use one barrel (for example), sett it "always active", "Static Mode = No" and "isImmobile = Yes"
-- use "always active" just if you want for active on all of your map. If not, use as a trigger zone !
function goindoor_init(e)
end
function goindoor_main(e)
PlayerDist = GetPlayerDistance(e)
if PlayerDist < 900 then -- change for your desidered distance
HideTerrain(e)
HideWater(e)
ActivateIfUsed(e)
end
end
BTW: to reverse on "Show" (the terrain or water) just change the "Hide" with "Show" in all of those examples
Smile today, tomorrow could be worse
http://bestradiolarry.ro/fps/
"The best forum, game software, operating system or web platform, it's that software which can give you most of the features and speed, not just amazing graphics."