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
- Sinky's Mission-Settings (Download here)
- description.ext
- Easy = Blue <10
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;
};
original Script here:
http://www.armaholic.com/page.php?id=13387
Credits:
Sinky
Last edited: