Page MenuHomeFeedback Tracker

[Feature Request] nearestLocation locationClass Array parameter type
Feedback, NormalPublic

Description

The idea is essentially that instead of using:

_nearestCity = nearestLocation [getPos player, "nameCity"];

one would be able to do:

_nearestLocation = nearestLocation [getPos player, ["nameCity", "nameLocal"]];

This would function similarly to:

_nearestLocations = nearestLocations [getPos player, ["nameCity", "nameLocal"]];

but instead of calculating all of the locations and sorting them by distance into an array, it should only have to grab the closest one and return it as a string.

In theory, this would be better optimized for the more specific use case of finding the nearest location of multiple location types, as opposed to all locations of multiple location types and selecting the first value from the array.

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
General

Event Timeline

Vespade created this task.Jul 29 2023, 11:06 PM
BIS_fnc_KK set Ref Ticket to AIII-55839.Jul 30 2023, 7:10 PM

nearestLocation [position, type or [types], (maxDistance)]

Revision: 150857

BIS_fnc_KK removed BIS_fnc_KK as the assignee of this task.Jul 30 2023, 7:22 PM
BIS_fnc_KK changed the task status from New to Feedback.
BIS_fnc_KK added a subscriber: BIS_fnc_KK.