Do N

From Augmotic Library
< Unreal‎ | API
Inputs
Enter Execution pulse that will be limited.
N Amount of times allowed to execute.
Reset Sets node counter to zero.
Outputs
Exit Execution output if limit has not passed.
Counter Current internal value.
The equivalent in C++ is to use an if statement with a counter to limit the number of calls. A reset is done by setting the counter back to zero.

Overview

Do N will limit the number of times an execution pulse can occur until it has been reset.

The initial counter value is zero. Using the reset pin will also set it to zero.

Each time a pulse is allowed to pass through, the counter will be incremented by one.

Examples

Limited Calls

The Test Function can only be executed three times before a reset is needed.