create_actor_component
Create an Actor Component Blueprint to encapsulate reusable gameplay behavior such as leveling, health regen, or inventory, with custom variables and functions.
Instructions
Create an Actor Component Blueprint for encapsulated gameplay behaviour.
From Ch. 18: Actor Components are reusable behaviour modules that can be added to any Actor. The book example creates BP_ExpLevelComp for experience/leveling.
An Actor Component has no Transform (unlike Scene Component). It can access its owning Actor via the "Get Owner" node.
Example use cases:
Experience/leveling system (BP_ExpLevelComp from the book)
Health regeneration component
Inventory component
Status effect manager
Args: name: Component Blueprint name (e.g., "BP_ExpLevelComp") variables: List of variable definitions [{"name", "type", "default_value", "is_array"}] functions: List of function definitions [{"name", "inputs", "outputs"}] folder_path: Content browser folder
KB: see knowledge_base/11_BLUEPRINT_LIBRARIES_AND_COMPONENTS.md#overview Example: create_actor_component(name="ExampleName")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| functions | No | ||
| variables | No | ||
| folder_path | No | /Game/Components |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |