Page MenuHomeFeedback Tracker

AllUnits command returns modules entities!
Reviewed, NormalPublic

Description

Hi,
allUnits is supposed to return "all persons except agents, outside and inside vehicles, created on the following sides east, west, resistance/independent and civilian only. Does not contain units of sideLogic. Dead units and units awaiting for respawn are also excluded. "

But this command returns also:

  • BIS_SUPP_ HQs when using a support module (virtual).
  • base when HQ module is used.

Details

Severity
None
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General
Steps To Reproduce

Vanilla Arma
Just place in Eden, a player, a HQ module, a requester module+virtual artillery one.

In debug console: count allUnits will return 5! : the player, the HQ entity, 3 BIS_SUPP_HQ (WEST EAST INDEP sides)

In this case, this command should return the player only!

Additional Information

Furthermore, the entities like BIS_SUPP_HQs (virtual support modules) are all kind of "CAManBase" !!! but not the entity of HQ module...

So _x isKindOf CAManBase filters the HQ's entity,
and you need to add something like !(_x in [BIS_SUPP_HQ_EAST,BIS_SUPP_HQ_WEST,BIS_SUPP_HQ_GUER]) to filter these suppor entities.

Event Timeline

PiepMGI created this task.Sep 7 2018, 5:31 PM
Wulf changed the task status from New to Reviewed.Sep 20 2018, 1:27 PM
Wulf added a subscriber: Wulf.

Hello.

Thank you for the report. We will have a look at it.