Page MenuHomeFeedback Tracker

[Feature Request] SQF command nearLeaders
New, NormalPublic

Description

Reasoning:

If you have many groups/units, to iterate though all takes very long (even with the new groups <side> or nearEntities) - for perFrame execution filtering per SQF is very expensive.

Suggested format:

_leaders = position/object nearLeaders distance;
_leaders = position/object nearLeaders [side,distance];
_leaders = position/object nearLeaders [[sides],distance];

Return Value: Array of Units - not sorted

It should also exclude non simulated units/leaders.

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
Scripting
Additional Information

Event Timeline

That command would be really useful to save alot of time, even outside perframe execution. If you have a good amount of units/groups around a certain place, it takes a good chunk of time.

But it would also be useful to get non simulated leaders with this command. Maybe exclude non simulated leaders optionally per additional parameter?