Page MenuHomeFeedback Tracker

inAreaArray variant to return indexes: inAreaArrayIndexes
Feedback, NormalPublic

Description

I'd like to request a variation of inAreaArray command that returns matching indexes instead of array elements. Non-object entities have to be represented as positions and to determine which non-object entity was matched by the command, you have to resort to hacky approaches like storing indexes as position Z coordinate which creates additional overhead for high-performing scripts, for which inAreaArray command very useful.

Details

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

Current inAreaArray output:

[
	[0,0,0],
	[100,0,0],
	[200,0,0]
] inAreaArrayIndexes [[0,0,0], 150, 150]

>[[0,0,0],[100,0,0]]

Proposed inAreaArrayIndexes output:

[
	[0,0,0],
	[100,0,0],
	[200,0,0]
] inAreaArrayIndexes [[0,0,0], 150, 150]

>[0,1]

Event Timeline

SaMatra created this task.Feb 19 2023, 2:26 PM
SaMatra renamed this task from inAreaArrayIndexes to inAreaArray variant to return indexes: inAreaArrayIndexes.

rev 150318 https://community.bistudio.com/wiki/inAreaArrayIndexes

Please check every variation thoroughly

BIS_fnc_KK removed BIS_fnc_KK as the assignee of this task.Feb 20 2023, 3:40 PM
BIS_fnc_KK changed the task status from New to Feedback.
BIS_fnc_KK added a subscriber: BIS_fnc_KK.

resort to hacky approaches like storing indexes as position Z coordinate

You can just store them as hashmaps now

dedmen set Ref Ticket to AIII-55567.Wed, Mar 1, 1:42 PM