Page MenuHomeFeedback Tracker

[Feature Request] SQF command to return visible targets for an unit
New, NormalPublic

Description

Reasoning:

  1. The engine already has the info internally (for HUD/radar/3d unit icons/target decision making)
  2. To compute it via sqf is very slow (intersect checks or checkVisibilty)

Minimum for the player, better for any unit, useful for the whole group.

Optional filters:

  • isVisibleOnly/isRadarTarget
  • enemyOnly
  • isAlive
  • isUnconscious
  • maxDistance
  • sides
  • [isKindOfArray]
  • targetMaxAge
  • returnIsSortedBy //enum [not,distance ,cost/threat]

Return value could be simply the list of visible targets (array). One could replicate the return from targetsQuery, but then would need parameters to disable it partially/altogether for the most efficient variant.

Notes:

  1. hidden and not simulated should not be in the list in case the engine doesnt filter them out already
  2. It might be more efficient to have a separate SQF command for radar targets vs visible targets

Details

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

Event Timeline

h- added a subscriber: h-.Oct 24 2022, 4:55 PM
dedmen set Ref Ticket to AIII-55407.Mon, Nov 14, 2:46 PM