create_random_spawner_blueprint
Creates a Blueprint that spawns a chosen actor class at a randomly selected target point from a configurable array, ensuring validated placement during gameplay.
Instructions
Create the BP_RandomSpawner Blueprint from Ch. 13.
Creates a Blueprint that:
Has a TargetPoints array (Actor Object Reference, Instance Editable)
Has a SpawnClass variable (Actor Class Reference, Instance Editable)
On BeginPlay: validates both, picks a random TargetPoint from the array, gets its transform, and spawns an actor of the SpawnClass at that location
Args: name: Blueprint name folder_path: Content browser folder
KB: see knowledge_base/07_DATA_STRUCTURES.md#overview Example: create_random_spawner_blueprint()
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "create_random_spawner_blueprint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | BP_RandomSpawner | |
| folder_path | No | /Game/Blueprints |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |