Page MenuHomeFeedback Tracker

Overlap in forEach classname selection
Closed, ResolvedPublic

Description

forEach using "I_G_Soldier_F" classname will select all I_G_Soldier_F, O_G_Soldier_F, and B_G_Soldier_F

Details

Severity
Minor
Resolution
No Bug
Reproducibility
Always
Operating System
Windows 10 x64
Category
Scripting
Steps To Reproduce
  1. Start ArmA 3
  1. Go to Editor
  1. Place units: I_G_Soldier_F, O_G_Soldier_F, and B_G_Soldier_F
  1. Preview scenario
  1. In debug panel, type {_x setDamage 1} forEach (entities "I_G_Soldier_F");
  1. All three units will die
  1. Local exec

Event Timeline

scrubmommy updated the task description. (Show Details)May 20 2023, 10:45 PM
scrubmommy edited Steps To Reproduce. (Show Details)
scrubmommy edited Additional Information. (Show Details)
BIS_fnc_KK added a subscriber: BIS_fnc_KK.EditedMay 21 2023, 12:11 AM

https://community.bistudio.com/wiki/entities

Returns a list of all alive and dead entities of the given type or deriving from the given type

This is not a bug

BIS_fnc_KK closed this task as Resolved.May 21 2023, 12:11 AM
BIS_fnc_KK changed Resolution from Open to No Bug.

Interesting, I misunderstood the wording. Thanks for clarifying.