add_random_array_item_node
Add a random array item node to a Blueprint to retrieve a random element from an existing array, enabling random selection from target points or other lists.
Instructions
Add a Random Array Item node to get a random element from an Array.
From Ch. 13 (BP_RandomSpawner): Returns a random element from the array. Used to randomly select a spawn point from an array of Target Points.
Args: blueprint_name: Blueprint to add the node to array_variable: Array variable name node_position: [X, Y] graph position
KB: see knowledge_base/07_DATA_STRUCTURES.md#overview Example: add_random_array_item_node(blueprint_name="/Game/MCP_Test/BP_Example", array_variable="ExampleName")
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"blueprint_name": "<blueprint_name>",
"array_variable": "<array_variable>"
},
"name": "add_random_array_item_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node_position | No | ||
| array_variable | Yes | ||
| blueprint_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |