add_blueprint_spawn_actor_node
Add a SpawnActorFromClass node to a Blueprint graph to spawn actors of a given class at a specified transform. Set class, transform, collision, owner, and instigator pins.
Instructions
Add a SpawnActorFromClass node (K2Node_SpawnActorFromClass) to a Blueprint graph.
Spawns a new actor of the given class at a given transform. Pins: execute, Class, SpawnTransform, CollisionHandlingOverride, Owner, Instigator, then, ReturnValue (actor ref).
Args: blueprint_name: Asset name of the Blueprint. actor_class: Short class name to pin as default (e.g. 'BP_AggroBot1'). Leave empty to leave the Class pin unwired. graph_name: Graph to add to. Default 'EventGraph'. node_position: Optional [X, Y] canvas position.
Returns: Dict with 'node_id', 'node_name', 'node_type', 'actor_class', and 'pins'.
KB: see knowledge_base/01_BLUEPRINT_FUNDAMENTALS.md#overview Example: add_blueprint_spawn_actor_node(blueprint_name="/Game/MCP_Test/BP_Example")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| graph_name | No | EventGraph | |
| actor_class | No | ||
| node_position | No | ||
| blueprint_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |