add_ability_task
Create an ability task on the primary instance of an ability granted to an editor-world actor, initialized as AwaitingActivation and not activated.
Instructions
Create an ability task on the primary instance of an ability already granted to an editor-world actor; the task is initialized (AwaitingActivation), never activated. task_class is only validated: it always builds the abstract base UAbilityTask, which logs a warning and an ensure.
Returns: { actor_name, ability_class, task_class, instance_name, task_name, added, task_state }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actor_name | Yes | Object name (not the label) of the editor-world actor, e.g. "BP_Hero_C_1", matched case-insensitively; find_actors_by_name maps labels to names | |
| task_class | Yes | Class path of a UAbilityTask subclass, e.g. "/Script/GameplayAbilities.AbilityTask_WaitDelay"; checked, but not used to build the task | |
| ability_class | Yes | Class path of an ability already granted to the actor, e.g. "/Game/Abilities/GA_Jump.GA_Jump_C"; it must be instanced (have a primary instance) | |
| instance_name | No | Name for the new task instance (default "Default") |