Page MenuHomeFeedback Tracker

[Feature Request] SQF command nearGroups
New, NormalPublic

Description

Reasoning:

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

nearGroups would look for any unit within the radius - not just the leader, and would add that group to the return.

Suggested format:

_groups = position/object nearGroups distance;
_groups = position/object nearGroups [side,distance];
_groups = position/object nearGroups [[sides],distance];

Return Value: Array of Groups - not sorted

It should also exclude non simulated groups.

Details

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

Event Timeline

kju-PvPscene updated the task description. (Show Details)Feb 3 2023, 5:10 PM

As noted also with T170145, having non simulated groups being returned also would be useful, so maybe only exclude them with additional optional parameter?