User Tools

Site Tools


arma3:scripting:find-all-meadows

ArmA 3 Find All Meadows

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

2022-06-23T13:52:00Z

Find all meadows:

{deletemarker _x} foreach allMapMarkers;
 
_centerPos = getArray (configfile >> "CfgWorlds" >> worldName >> "centerPosition");
 
_allMeadows = selectBestPlaces [_centerPos,(worldSize / 2) * 1.4142,"(1 - forest) * (1 - hills) * (1 - sea) * (1 - trees) * (1 + meadow) * (1 - houses)",50,100];
_allMeadows = _allMeadows apply {_x#0};
{
	_marker = createmarker [str _x, _x];
	_marker setmarkertype "mil_flag";
	_marker setmarkercolor "ColorRed";
	_marker setmarkertext format ["Flat %1",_forEachIndex];
} forEach _allMeadows;

Source bis forums.

arma3/scripting/find-all-meadows.txt · Last modified: 2024/08/02 16:28 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.