Hi,
I'd like to find out if a position is in the middle of a forest (not trees, but undestructible forest) or not.
I tried to modify Cleanrock's InForest.sqf, because it reacts to trees not just forest objects. But I failed.
COMREF says for "nearestObject Pos" that "Pos may be [x, y ,z, "type"] or [object, "type"] or even [x, y, z]".
But it just do not work for forests:
- without "type" if finds the nearest forest triangle, but it returns "12345: objectname"
It would be OK without the object ID, but I can't cut it from the beginning of the string.
- with "type"="Forest" or "les ctverec pruchozi_t1" or anything else only NULL is returned.
Any idea how to detect if a position in a forest, but avoid other trees?
BR,
Kubi