User Tools

Site Tools


arma3:scripting:server-parameter-viewdistance

ArmA 3 Class Params setViewdistance

ArmA 3 Forum, ArmA 3, ArmA 3 Config, ArmA 3 Missions, ArmA 3 3D Modeling, ArmA 3 Scripting, ArmA 3 Terrain, ArmA 3 Texturing, ArmA 3 Tools

This ArmA 3 server parameter view distance option will set every players viewdistance to the admin selected range, remember maybe not every player can handle huge view distances.

description.ext

class Params
{
	class PMC_viewdistance
	{
		title = "View distance (in meters)";
		values[] =
		{
			500,
			1000,
			2000,
			3000,
			4000,
			5000,
			6000,
			7000,
			8000,
			9000,
			10000,
			11000,
			12000,
			13000,
			14000,
			15000,
			16000,
			17000,
			18000,
			19000,
			20000,
			25000,
			30000,
			35000,
			40000,
		};
		// When 'texts' are missing, values will be displayed directly instead
		default = 5000;
		file = "PMC\PMC_setViewDistance.sqf"; // (Optional) Script [[call]]ed when player joins, selected value is passed as an argument
	};
};

PMC_setViewDistance.sqf

private _viewDistance = ["PMC_viewdistance"] call BIS_fnc_getParamValue;
 
setViewdistance _viewDistance;
arma3/scripting/server-parameter-viewdistance.txt · Last modified: 2024/08/02 16:32 by snakeman

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki

All PMC web site download services are temporarily suspended until web site yearly fees have been recovered, want to download addons/mods? Then Support PMC.

If you are grateful for all the work PMC has done in the past 25 years, use Support PMC page.