title: How to retrieve the GameplayEvent payload from a GameplayAbility trigger?
body: <p>When using Unreals <a href="https://docs.unrealengine.com/en-us/Gameplay/GameplayAbilitySystem" rel="nofollow noreferrer">GameplayAbilitySystem</a>, a <em>GameplayAbility</em> can be triggered using a <em>GameplayEvent</em>.</p>
  
  <p>When using <code>UAbilityTask_WaitGameplayEvent</code>, the <em>GameplayEvent</em> provides a payload of class <code>FGameplayEventData</code>.</p>
  
  <p><a href="https://i.stack.imgur.com/Hf97J.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Hf97J.png" alt="WaitGameplayEvent"></a></p>
  
  <p>Is it possible to retrieve such an event payload also from within a  <em>GameplayAbility</em>, after it is activated by a trigger of type <em>GameplayEvent</em>?</p>
  
  <p><a href="https://i.stack.imgur.com/Mviol.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Mviol.png" alt="A GameplayAbility GameplayEvent trigger"></a></p>
  
  <p>A solution either in Blueprint or C++ would be fine.</p>