Appearance
Action Call Function
Calls a defined function by name, executing its flow and returning.
Inputs: 1 · Outputs: Then
Settings
| Setting | Type | Required | Default | Description |
|---|---|---|---|---|
| Function Name | String | Yes | — | Name of the function to call (must match a Function trigger node). |
| Arguments | String Array | No | — | Values to pass to the function. Accessible as %arg_1%, %arg_2%, etc. |
| Pass Current Variables | Boolean | No | true | If enabled, local variables from the calling context are accessible in the function. Disable to only pass the explicit arguments above. |
How It Works
- Execution jumps to the matching Function node.
- The function's flow runs to completion.
- Execution returns and continues from the Then output.
Example
Call a reward function with arguments:
- Function Name:
giveReward - Arguments:
diamond,5 - In the function, use
%arg_1%(=diamond) and%arg_2%(=5)
