If true, the loop visits only the entities whose map index is the map index of the running script.
ForEachEntityWithScriptBlock
Inheritance 3 ancestors · 3 siblings
- IScriptBlock
- ILoopScriptBlock
- GameEntityLoopBlock
- 0x81a1e232
- 0xbe586e39 (removed in patch 15.17)
- ForEachEntityWithScriptBlockcurrent
- ForEachEntityWithTagBlock
- GameEntityLoopBlock
- ILoopScriptBlock
Class Documentation
Edit documentationAn entity loop over the entities that run a script. The
loop finds the running instances of the script that Script names and visits the entity
that owns each instance. It skips an entity that fails the map filter, and for every other
entity it writes the entity to OutEntity and runs the body.
The loop copies the list of entities before the first iteration, so changes that the body makes to the script instances do not change which entities the loop visits.
FilterByMapIndex and MapIndexOverride work as on
ForEachEntityWithTagBlock.
Properties
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.
Script
Hash = "0x0" The hash of the script whose instances the loop looks for.