Jump to content
Sign in to follow this  
_51st_Pappy

Serviewdistance

Recommended Posts

Can the SetViewDistance command be used like

?(benchmark < 1000):setviewdistance 400 in the description.ext file or some other position the have it apply to all units in the map. I know it works in the init field of each unit but would like to enter it once.

Thanks for any response

Share this post


Link to post
Share on other sites

ok if i understood this correctly u want the same viewdistance for everybody in the mission? Make a Trigger then type on the activation field type:

SetViewDistance 1000 (or whatever distance u want)

Make it an "ANYBODY" trigger

Then place the trigger around the starting units on one of the sides EAST or WEST. Why? because if u put it around just one unit and dont select to play him in the setup screen your trigger wont get set off.

Share this post


Link to post
Share on other sites

You can use ?(benchmark < 1000):setviewdistance 400 in any script (for example in init.sqs).

Or, if you don't want to use script, you can use trigger :

axis A,B = 0

activation nobody once

condition : benchmark < 1000

on activation : setviewdistance 400

It should work for all units on map. Value of setviewdistance should be from 500 to 5000. (it's in official scripting commands manual)

Share this post


Link to post
Share on other sites

this is from init.sqs fo SP 01.Steal the Car

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">titleCut ["","BLACK IN", 3]

;?benchmark>700:goto "PI700"

;setViewDistance 250

;goto "End"

;#PI700

;?benchmark>1000:goto "PI1000"

;setViewDistance 350

;goto "End"

;#PI1000

;setViewDistance 500

;#End

;exit<span id='postcolor'>

so i guess although they didn't use it, it is possible.

so place it at init.sqs

Share this post


Link to post
Share on other sites

biggrin.gif Thanks for the info

Using the benchmark command in the init.sgs file seems to work fine. It can be as simple as

setviewdistance benchmark

or

setviewdistance (.75 * benchmark)

or the conditional

?benchmark <2500 benchmark 1000

It sure is great not to see roads and other objects generate out in front of you. Also makes the A10 cannon a real weapon as you can see far enough out to lineup.

Thanks again

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×