# Spec Handle: How do I return external Actors that applied a gameplay effect?

**URL:** <https://forums.unrealengine.com/t/spec-handle-how-do-i-return-external-actors-that-applied-a-gameplay-effect/1269159>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [August 22, 2023, 8:07pm UTC](https://forums.unrealengine.com/t/spec-handle-how-do-i-return-external-actors-that-applied-a-gameplay-effect/1269159 "2023-08-22T20:07:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![KeelhaulTheLot](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KeelhaulTheLot](https://forums.unrealengine.com/u/KeelhaulTheLot)\
**Post date:** [August 22, 2023, 8:07pm UTC](https://forums.unrealengine.com/t/spec-handle-how-do-i-return-external-actors-that-applied-a-gameplay-effect/1269159/1 "2023-08-22T20:07:02Z")

</div>

I am building a Scape-like game, so I need to be able to return the actor that applied an effect; instead of relying on AI senses to drive NPC aggression.

> I am having some major issues wrapping my head around Effect Spec Handles.  
> I am unsure of how to call one to return the instigator/causer in this EG:

Get Effect Context no longer works in the context pictured. If you need the GetEffectCauser apply GameplayEvent from the _attacking actor_, and include a payload that includes its self as the Instigator.

See my reply for detailed instructions.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/8/8/88831b2232d61a511d8e6cf2a9260da15cfc8fb2.png)  
(redirect is there to represent arbitrary code)

---

<div class="post-metadata">

**Author:** ![KeelhaulTheLot](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KeelhaulTheLot](https://forums.unrealengine.com/u/KeelhaulTheLot)\
**Post date:** [August 22, 2023, 10:29pm UTC](https://forums.unrealengine.com/t/spec-handle-how-do-i-return-external-actors-that-applied-a-gameplay-effect/1269159/2 "2023-08-22T22:29:58Z")

</div>

Upon some experimentation I have learned that spechandle is partially deprecated due to the deprecation of UE Damage.

The current solution to pass an InstigatorKey is to use a GamePlayEvent.

Actor Sending the Effect:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/c/c/6cce4ec903488a4a62af67d36248888f609f117d.png)

Actor Receiving the Effect:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/d/7/dd7f17f000af323786b508b5985c29aee784d407.png)

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [September 21, 2023, 10:30pm UTC](https://forums.unrealengine.com/t/spec-handle-how-do-i-return-external-actors-that-applied-a-gameplay-effect/1269159/3 "2023-09-21T22:30:18Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
