add_validated_get_node
Adds a Validated Get node to check an object reference is valid before use, preventing crashes from null or destroyed references. Provides Is Valid and Is Not Valid execution pins for handling both cases.
Instructions
Add a Validated Get node for safe object reference access.
From Ch. 16: A Validated Get node (right-click -> Convert to Validated Get) adds execution pins to check if an object reference is valid before using it. This prevents crashes from accessing destroyed or null references.
The node has:
Is Valid execution pin (proceed normally)
Is Not Valid execution pin (handle null case)
Args: blueprint_name: Blueprint to add the node to variable_name: Variable to access with validation cast_to_class: Optional class to cast to after validation node_position: [X, Y] graph position
KB: see knowledge_base/10_WORLD_BUILDING.md#overview Example: add_validated_get_node(blueprint_name="/Game/MCP_Test/BP_Example", variable_name="ExampleName")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cast_to_class | No | ||
| node_position | No | ||
| variable_name | Yes | ||
| blueprint_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |