add_get_actor_of_class_node
Adds a 'Get Actor Of Class' node to a Blueprint, returning the first actor of a specified class for referencing unique actors like GameMode or PlayerController.
Instructions
Add a 'Get Actor Of Class' node - returns the first actor found.
Ch.3/4: Finds the first actor of the specified class in the level. Useful for getting a reference to a unique actor like GameMode or PlayerController.
Args: blueprint_name: Blueprint name actor_class: Class to search for node_position: Optional [X, Y] graph position
KB: see knowledge_base/01_BLUEPRINT_FUNDAMENTALS.md#overview Example: add_get_actor_of_class_node(blueprint_name="/Game/MCP_Test/BP_Example")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actor_class | No | Actor | |
| node_position | No | ||
| blueprint_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |