add_map_variable
Add a Map variable to a Blueprint to store key-value pairs with O(1) lookup by key. Specify key and value types, optionally expose to editor Details panel.
Instructions
Add a Map (dictionary) variable to a Blueprint.
Maps store key-value pairs with O(1) lookup by key.
Args: blueprint_name: Blueprint name variable_name: Variable name key_type: Key type (String, Name, Integer, etc.) value_type: Value type (Integer, Float, String, Vector, etc.) is_exposed: Expose to editor Details panel
KB: see knowledge_base/07_DATA_STRUCTURES.md#overview Example: add_map_variable(blueprint_name="/Game/MCP_Test/BP_Example", variable_name="ExampleName", key_type="ExampleName", value_type=0.0)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key_type | Yes | ||
| is_exposed | No | ||
| value_type | Yes | ||
| variable_name | Yes | ||
| blueprint_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |