Returns a list of nearest terrain objects of the given types to the given position or object, within the specified distance. If more than one object is found they will be ordered according to 3D distance to the object (i.e. the closest one will be first in the array).
In contrast to nearestObjects this command returns terrain placed objects like trees, rocks and buildings which don't necessarily need an associated config class.
Possible type names:
"BUILDING"
"BUNKER"
"BUSH"
"BUSSTOP"
"CHAPEL"
"CHURCH"
"CROSS"
"FENCE"
"FOREST BORDER"
"FOREST SQUARE"
"FOREST TRIANGLE"
"FOREST"
"FORTRESS"
"FOUNTAIN"
"FUELSTATION"
"HIDE"
"HOSPITAL"
"HOUSE"
"LIGHTHOUSE"
"MAIN ROAD"
"POWER LINES"
"POWERSOLAR"
"POWERWAVE"
"POWERWIND"
"QUAY"
"RAILWAY"
"ROAD"
"ROCK"
"ROCKS"
"RUIN"
"SHIPWRECK"
"SMALL TREE"
"STACK"
"TOURISM"
"TRACK"
"TRAIL"
"TRANSMITTER"
"TREE"
"VIEW-TOWER"
"WALL"
"WATERTOWER"
⚠
The names are / The filter is based on the named property map - not on the named property class or any config definition!
ⓘ
Types which are missing are not present in the given world. Virtual Reality has no terrain objects. Last updated 2.12
Since Arma 3 v1.66 the default sorting is done according to 3D distance not distance2D as before. This is an attempt to correct some very old bug in implementation.
Be aware that some terrain objects types might be tricky to be found, such as terrain rocks and boulders which are not considered to be "ROCKS" or "ROCK", but "HIDE". Example: