OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: AngryAngel on 24 Feb 2003, 10:16:07

Title: Is it possible to extend/override VisibleRange in MP?
Post 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
Title: Re:Is it possible to extend/override VisibleRange in MP?
Post by: Tactician on 24 Feb 2003, 16:35:06
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.
Title: Re:Is it possible to extend/override VisibleRange in MP?
Post by: AngryAngel on 24 Feb 2003, 17:00:04
Great

Thank you for the detailed answer!
Title: Re: Is it possible to extend/override VisibleRange in MP?
Post by: mboshell on 08 Jan 2010, 18:52:17
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.
Title: Re: Is it possible to extend/override VisibleRange in MP?
Post by: Planck on 08 Jan 2010, 22:32:41
 :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
Title: Re: Is it possible to extend/override VisibleRange in MP?
Post by: mboshell on 09 Jan 2010, 23:12:57
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 :)