set_gameplay_effect_duration
Set a GameplayEffect Blueprint's duration policy and, for HasDuration, its duration in seconds. Use to control effect duration in Unreal Engine 5.
Instructions
Set DurationPolicy on the class default object of a GameplayEffect Blueprint and, for HasDuration, a constant DurationMagnitude of duration_seconds (Instant and Infinite leave the stored magnitude as it was), then save the asset without recompiling and without an undo entry. A bad policy, HasDuration without duration_seconds, a non-GE Blueprint, a running PIE session or a read-only root fails before any edit. duration_seconds and duration_readback_ok come back only for HasDuration. For a native GE asset use set_gameplay_effect_duration_policy; for periodic ticks, set_gameplay_effect_period.
Returns: { ge_blueprint_path: string, duration_policy: string, policy_matches: bool, duration_readback_ok: bool, duration_seconds: number, set: bool }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| blueprint_name | No | Alias of `ge_blueprint_path` (same value, same meaning). Accepted because sibling tools spell this parameter differently; prefer `ge_blueprint_path`. | |
| duration_policy | Yes | Instant, Infinite, or HasDuration | |
| duration_seconds | No | Duration in seconds; required when duration_policy is HasDuration, ignored for Instant and Infinite | |
| ge_blueprint_path | No | Full asset path of the GE Blueprint |