grant_ability
Grants a gameplay ability class to an editor-world actor's ability system at a whole-number level, returning whether a valid ability spec handle was created. Runtime only.
Instructions
Grant an ability class to an editor-world actor ability system component with GiveAbility at a whole-number level; granted tells whether a valid spec handle came back. Runtime state only (not saved with the level), and granting the same class again adds another spec.
Returns: { actor_name, ability_class, level, granted }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | Spec level, a whole number; default 1 | |
| 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 | |
| ability_class | Yes | Class path of a UGameplayAbility subclass: "/Game/Abilities/GA_Jump.GA_Jump_C" for a Blueprint, "/Script/MyGame.MyAbility" for C++ |