# If A overlapping B - move C to D

**URL:** <https://forums.unrealengine.com/t/if-a-overlapping-b-move-c-to-d/453508>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [August 7, 2019, 1:05pm UTC](https://forums.unrealengine.com/t/if-a-overlapping-b-move-c-to-d/453508 "2019-08-07T13:05:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![linkings](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@linkings](https://forums.unrealengine.com/u/linkings)\
**Post date:** [August 7, 2019, 1:05pm UTC](https://forums.unrealengine.com/t/if-a-overlapping-b-move-c-to-d/453508/1 "2019-08-07T13:05:24Z")

</div>

## A - arrow

## B - target

## D - destination

- 

(corrected): A and B are components with collision boxes. When A box overlaps with B, it should send C (component) with an FInterp movement to D (actor). Any minimalist solution?

---

<div class="post-metadata">

**Author:** ![linkings](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@linkings](https://forums.unrealengine.com/u/linkings)\
**Post date:** [August 8, 2019, 8:22am UTC](https://forums.unrealengine.com/t/if-a-overlapping-b-move-c-to-d/453508/2 "2019-08-08T08:22:14Z")

</div>

![284507-draw.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/a/7/ba7f54cfd8be48510059590d1534bab2a501c2cd.png)

---

<div class="post-metadata">

**Author:** ![ppchavan001](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ppchavan001](https://forums.unrealengine.com/u/ppchavan001)\
**Post date:** [August 8, 2019, 8:51am UTC](https://forums.unrealengine.com/t/if-a-overlapping-b-move-c-to-d/453508/3 "2019-08-08T08:51:40Z")

</div>

on actor A or B,  
Create two variables C and D,  
Fill the values of C and D,  
On Begin Overlap, Check if overlapped with B or A,  
if yes move C → (get the location of D)

---

<div class="post-metadata">

**Author:** ![linkings](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@linkings](https://forums.unrealengine.com/u/linkings)\
**Post date:** [August 8, 2019, 9:01am UTC](https://forums.unrealengine.com/t/if-a-overlapping-b-move-c-to-d/453508/4 "2019-08-08T09:01:54Z")

</div>

In which bueprint? Level?  
Or the actor which A, B, C are components of?

(A + B + C are components. D is external actor)

---

<div class="post-metadata">

**Author:** ![ppchavan001](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ppchavan001](https://forums.unrealengine.com/u/ppchavan001)\
**Post date:** [August 8, 2019, 9:40am UTC](https://forums.unrealengine.com/t/if-a-overlapping-b-move-c-to-d/453508/5 "2019-08-08T09:40:46Z")

</div>

it doesn’t matter where you set up the logic as long as the variables are filled properly,  
for now, try it inside the component itself
