_51st_Pappy 0 Posted April 29, 2002 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
IntruderDZ 1 Posted April 30, 2002 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
Bart.Jan 0 Posted April 30, 2002 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
ralphwiggum 6 Posted April 30, 2002 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
_51st_Pappy 0 Posted April 30, 2002 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