add_is_valid_node
Adds an IsValid macro node to Blueprint graphs, checking object references to prevent crashes from accessing null or destroyed actors.
Instructions
Add an IsValid macro node to check if an object reference is valid (non-null).
From Ch. 3, 4, 11, 13: Used before accessing object references to prevent crashes from accessing null/destroyed actors. Returns Is Valid and Is Not Valid execution pins.
Args: blueprint_name: Blueprint to add the node to node_position: [X, Y] graph position
KB: see knowledge_base/01_BLUEPRINT_FUNDAMENTALS.md#overview Example: add_is_valid_node(blueprint_name="/Game/MCP_Test/BP_Example")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node_position | No | ||
| blueprint_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |