Page MenuHomeFeedback Tracker

Requesting nearestLocation to support also locationClass-array
Acknowledged, WishlistPublic

Description

nearestLocation accepts currently only one locationClass at once. Would make certain searches more easy if it would also accept arrays.

WORKING:
_nearestCity = nearestLocation [player, "NameCity"];

NOT WORKING:
_nearestCity = nearestLocation [player, ["NameCity","NameVillage","NameCityCapital","NameCityLocal"]];

Details

Legacy ID
880661854
Severity
None
Resolution
Open
Reproducibility
Always
Category
Feature Request
Steps To Reproduce

E.g. currently searching nearest village/town like this:

SAOKNEARESTVIL = {
_nearestCity = nearestLocation [_this, "NameCity"];
_nearestCity2 = nearestLocation [_this, "NameVillage"];
_nearestCity3 = nearestLocation [_this, "NameCityCapital"];
_nearestCity4 = nearestLocation [_this, "NameLocal"];
_copy = [[_nearestCity,_nearestCity2,_nearestCity3,_nearestCity4],[_this],{_input0 distance locationposition _x},"ASCEND"] call BIS_fnc_sortBy;
(_copy select 0)
};

Event Timeline

SaOk edited Steps To Reproduce. (Show Details)Apr 6 2015, 10:25 PM
SaOk set Category to Feature Request.
SaOk set Reproducibility to Always.
SaOk set Severity to None.
SaOk set Resolution to Open.
SaOk set Legacy ID to 880661854.May 8 2016, 11:50 AM