Loop List with Node
Iterates through a list and executes a node for each element
Loops a Game Object List Variable and executes a State Machine Node for each value.
Description
Iterates through a list of GameObjects and executes a specific node for each element. The Target argument of any instruction inside the node contains the current object being processed.
Parameters
List Variable
Local List or Global List whose elements are iterated
Node
The node to execute for each element in the list
Target
The target GameObject that contains the State Machine Runner
Keywords
Iterate, Cycle, Every, All, Stack
Example
Actions Component:
โโ Loop List with Node
โโ List Variable: EnemiesInRange
โโ Node: "ApplyDamageNode"
โโ Target: SelfThis iterates through all enemies in the EnemiesInRange list and executes the "ApplyDamageNode" for each one.
This is perfect for applying effects to multiple targets, such as:
Area of effect damage
Buff/debuff all allies
Process all items in an inventory
Last updated
Was this helpful?