Entity tags of which an entity must carry at least one to be visited. An empty list does not filter.
ForEachEntityWithTagBlock
Inheritance 3 ancestors · 3 siblings
- IScriptBlock
- ILoopScriptBlock
- GameEntityLoopBlock
- 0x81a1e232
- 0xbe586e39 (removed in patch 15.17)
- ForEachEntityWithScriptBlock
- ForEachEntityWithTagBlockcurrent
- GameEntityLoopBlock
- ILoopScriptBlock
Class Documentation
Edit documentationAn entity loop over the entities that carry an entity
tag. The loop evaluates tag and walks the list of entities that carry that tag. It skips
an entity that fails the tag filter or the map filter, and for every other entity it writes
the entity to OutEntity and runs the body.
Tag filter. The three unnamed tag lists filter the entities by their other tags:
- every tag in
"0xa1162603"must be on the entity, - if
"0x9c60d5ba"is not empty, at least one of its tags must be on the entity, - no tag in
"0xbec77248"may be on the entity.
The loop evaluates every entry of the three lists before the first iteration. If one entry cannot be evaluated, the loop runs no iteration.
Map filter. FilterByMapIndex and MapIndexOverride limit the loop to the entities of
one map index. The client finds the map index of an entity by the same rule as
GetEntityMapIndexBlock: from its template, or else from
the map regions around its position.
Properties
Entity tags that an entity must all carry to be visited.
Entity tags that exclude an entity: the loop skips an entity that carries any of them.
If true, the loop visits only the entities whose map index is the map index of the running script.
No documentation available yet. Click "Add documentation" to contribute!
A map index to filter by instead of the map index of the running script. If it evaluates
to a value other than 0, the loop filters by that index, also when FilterByMapIndex
is false or not set.
The entity variable that receives the entity before each run of the body.
The entity tag whose entities the loop visits. It must be set.