create_bt_attack_task
Create a Behavior Tree task Blueprint that damages a targeted player, with configurable damage amount and target Blackboard key.
Instructions
Create a Behavior Tree Attack Task Blueprint.
Ch.10: BTTask_DoAttack that deals damage to the player.
TargetActorKey (BlackboardKeySelector) - instance editable
Damage (Float, instance editable, default 0.25 = 25% of player health)
Overrides ReceiveExecute: checks IsValid on target, calls Apply Damage, then calls FinishExecute(Success=true)
Args: name: Task Blueprint name (e.g., "BTTask_DoAttack") damage_variable: Name of the damage float variable default_damage: Default damage amount (0.0-1.0 normalized or raw) target_key_variable: Name of the BlackboardKeySelector variable path: Content browser path
KB: see knowledge_base/04_AI_SYSTEMS.md#overview Example: create_bt_attack_task()
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | BTTask_DoAttack | |
| path | No | /Game/AI | |
| default_damage | No | ||
| damage_variable | No | Damage | |
| target_key_variable | No | TargetActorKey |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |