Sinky´s SetViewdistance (players can set individual Viewdistance)

SchwEde

OpenDayZ Rockstar!
Sinky´s SetViewdistance

Set your own viewdistance in game. The Script was fully written by Sinky, so all credits to him. I just removed the TerrainGrid part. If you want players to set the TerrainGrid just go through the files and remove all comment comands.
  • Requirements

    • fn_selfaction.sqf

  • Easy = Blue <10
Installation Steps

Download the Package and place it to your root folder of your mission.

Open your description.ext and paste at the top:
Code:
#include "mission_settings\dialog\common.hpp"
#include "mission_settings\dialog\mission_settings.hpp"

Open your fn_selfaction.sqf and find:
Code:
_canDo = (!r_drag_sqf and !r_player_unconscious and !_onLadder);

insert after it:
Code:
if ((speed player <= 1) && _canDo) then {
if (s_player_settings < 0) then {
    s_player_settings = player addaction [("<t color=""#ffffff"">" + ("Set Viewdistance") +"</t>"),"mission_settings\create.sqf","",5,false,true,"",""];
                };
        } else {
        player removeAction s_player_settings;
        s_player_settings = -1;
    };

EDIT:

For people with infiStar:

Replace:
Code:
if ((isNull (findDisplay 106)) && (isNull (findDisplay -1)) && (isNull (findDisplay 41144))
&& (isNull (findDisplay 65431)) && (isNull (findDisplay 65432)) && (isNull (findDisplay 65433)) && (isNull (findDisplay 65434))
&& (isNull (findDisplay 65440)) && (isNull (findDisplay 65441)) && (isNull (findDisplay 65442))) then
{
closeDialog 0;
};

with:
Code:
if ((isNull (findDisplay 106)) && (isNull (findDisplay 2001)) && (isNull (findDisplay -1)) && (isNull (findDisplay 41144))
&& (isNull (findDisplay 65431)) && (isNull (findDisplay 65432)) && (isNull (findDisplay 65433)) && (isNull (findDisplay 65434))
&& (isNull (findDisplay 65440)) && (isNull (findDisplay 65441)) && (isNull (findDisplay 65442))) then
{
closeDialog 0;
};
Credits for that goes to infiStar and
Lacost
original Script here:
http://www.armaholic.com/page.php?id=13387

Credits:
Sinky
 
Last edited:
Back
Top