OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: AngryAngel on 24 Feb 2003, 10:16:07
-
Hey guys
MP-maps have by default a limited visible range, compared to singeplayer ones.
Is it possible to override this setting?
This could help me a lot, because e.g. in sniper-missions itÂ's boring/stupid to move "close" to the target.
thx
AngryAngel
-
Yes. In init.sqs (or init trigger, whatever you prefer) add this line:
setViewDistance x
Where x is between 500 and 5000.
I'd say 1500 would be good for a sniper map, but it's up to you to determine the compromise between rendering performance and view distance. The default in MP is around 900 I think, but I've never tested that.
You can also change the terrain detail in MP in a similar way:
setTerrainGrid x
50 is the default MP terrain detail, and lower is more detailed. I recommend going in half-value steps, like 25 and 12.5, to find the detail you want.
-
Great
Thank you for the detailed answer!
-
I'm currently working on this but having trouble. Please bare with my noobness while I explain what I'm doing. I open a notepad file and type "setviewdistance 2000", then I save it as init.sqs under file type "all files" in my mission directory. It's not working, what am I missing?
Thanks.
-
:blink: 2003.
setViewDistance was not implemented in OFP version 1.46, it only came in with Resistance (1.75)... just in case you are only running 1.46 :cool2:
AFAIK setting a new viewdistance in MP is done on the server.
Planck
-
You may have hit my problem, thanks! I have resistance, but I let a friend use it. In effort to try to play with him, I deleted all of my addons from the folder. So, I may need to reinstall resistance for it. I'll get my disc back and give it a try.
Thanks for your help :)