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

Name
Description

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: Self

This iterates through all enemies in the EnemiesInRange list and executes the "ApplyDamageNode" for each one.

Inside the executed node, use the Target reference to access the current element being processed.

Last updated

Was this helpful?