# How to move to an actor, hold it and drop it somewhere else whenever detected by traces on Third person blueprint?

**URL:** <https://forums.unrealengine.com/t/how-to-move-to-an-actor-hold-it-and-drop-it-somewhere-else-whenever-detected-by-traces-on-third-person-blueprint/387301>\
**Category:** Blueprint\
**Tags:** drop, actor-blueprint, unreal-engine, UE4, question\
**Created:** [March 8, 2017, 12:44pm UTC](https://forums.unrealengine.com/t/how-to-move-to-an-actor-hold-it-and-drop-it-somewhere-else-whenever-detected-by-traces-on-third-person-blueprint/387301 "2017-03-08T12:44:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_974ce04c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_974ce04c](https://forums.unrealengine.com/u/anonymous_user_974ce04c)\
**Post date:** [March 8, 2017, 12:44pm UTC](https://forums.unrealengine.com/t/how-to-move-to-an-actor-hold-it-and-drop-it-somewhere-else-whenever-detected-by-traces-on-third-person-blueprint/387301/1 "2017-03-08T12:44:04Z")

</div>

Hello Everyone,

I have a scene in Third person blueprint where 3 actors are there: Actor A, Actor B, Actor C.

My goals are as follows (see attached image):

- Actor A has to slide towards actor B when it detects it using radial traces
- Once Actor A arrives at Actor B, it should hold it and drop it at Actor C location
- Then it should go back to the old Actor B location and starts looking again for another actor B in the area to hold it to Actor 3 location once again and so on.

Can someone please show me how to code this on unreal engine 4?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Erytriel](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Erytriel](https://forums.unrealengine.com/u/Erytriel)\
**Post date:** [March 12, 2017, 1:12pm UTC](https://forums.unrealengine.com/t/how-to-move-to-an-actor-hold-it-and-drop-it-somewhere-else-whenever-detected-by-traces-on-third-person-blueprint/387301/2 "2017-03-12T13:12:33Z")

</div>

hey! i guess this is something like a vaccum robot style thing? or sorter? does he moves randomly on the navigatable ground?

first step: simple movement to random point in navigable radius (until he could detect the things)

 ![129712-help1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/f/3/4f3dcf853f0b7a7ec9e837e6c298bdf2b9fdf78a.png)

2nd step: the detection … i couldnt find this kind of tracing , but i watched the other forum entries and understand the meaning.

so if he finds it, set watching for objects to false so it doesnt look further for objects.

IF its hits more than one trace: create a array which stores every second the traces as actor (breakhit result “hit actor”) and from this you can make a foreach loop and if it “contains” the actor in the array it should move to this actor which was just found

 ![129718-help2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/3/f/d3fd903d4ed39e56bc5e0e4de4fdbcfd442965ad.png)

3rd step:

i would recommend to create for every step you take make a bool to have a better controle  
now u have to pick up the ball: attach its actor or root component to the front of your actor, DISABLING its collision afterwards is mostly necessary because it bug like hell if not:) (pls tell me if you are using simulate physics , then its quite more difficult). A bool with “Item Picked up” would be good here and branching it so if he picked it up, he directly moves to point C (simple move to location) then detaching it , enabling collision.

then he turns back to point B (branches and bools should do the job, sequence and delay is a good way to make a while loop which doesnt crash because of infinite loop)

step4: repeat.

it begins again from start beside he starts his search at B not A

i hope i could help a little bit, if you dont understand it just comment , but i apreciate it if you make some self effort before asking for a complete bp build up for this because it is a little bit time intense 😃

---

<div class="post-metadata">

**Author:** ![Erytriel](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Erytriel](https://forums.unrealengine.com/u/Erytriel)\
**Post date:** [March 12, 2017, 1:14pm UTC](https://forums.unrealengine.com/t/how-to-move-to-an-actor-hold-it-and-drop-it-somewhere-else-whenever-detected-by-traces-on-third-person-blueprint/387301/3 "2017-03-12T13:14:46Z")

</div>

btw ! i have a Youtube channel for some tutorials of game mechanics maybe this one could help a little bit!

[Zelda Breath of the Wild: Skeleton Unreal Engine 4 Mechanics - YouTube](https://www.youtube.com/watch?v=hXx991SfYHM) it quite describes a find object and get it function:)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_974ce04c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_974ce04c](https://forums.unrealengine.com/u/anonymous_user_974ce04c)\
**Post date:** [March 13, 2017, 2:02pm UTC](https://forums.unrealengine.com/t/how-to-move-to-an-actor-hold-it-and-drop-it-somewhere-else-whenever-detected-by-traces-on-third-person-blueprint/387301/4 "2017-03-13T14:02:18Z")

</div>

+Erytriel thank you so much for the effort… I truly appreciate your help. I will try this soon and tell you back for sure and thanks for the video as well, I will subscribe to your channel too and wish if you can do a tutorial about this for me sometime this week if possible.

Actually I spent good time trying things out… in the links before I had previous trials but they don’t work still the way I wanted and for some reason, I can’t find what I am looking for online because of the unknown keywords to use.

---

<div class="post-metadata">

**Author:** ![Erytriel](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Erytriel](https://forums.unrealengine.com/u/Erytriel)\
**Post date:** [March 16, 2017, 3:46pm UTC](https://forums.unrealengine.com/t/how-to-move-to-an-actor-hold-it-and-drop-it-somewhere-else-whenever-detected-by-traces-on-third-person-blueprint/387301/5 "2017-03-16T15:46:03Z")

</div>

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/6/f/e6fad565b74a39f2c96e531181e5bea8fc556535.jpeg "Drag and Drop Robot Unreal Engine 4 HOW TO") ](https://www.youtube.com/watch?v=8y8fVPJyAUM)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_974ce04c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_974ce04c](https://forums.unrealengine.com/u/anonymous_user_974ce04c)\
**Post date:** [March 18, 2017, 3:57pm UTC](https://forums.unrealengine.com/t/how-to-move-to-an-actor-hold-it-and-drop-it-somewhere-else-whenever-detected-by-traces-on-third-person-blueprint/387301/6 "2017-03-18T15:57:59Z")

</div>

+Erytriel Thank you so much. I really like your video, It’s amazing…  
I hope it works with me as well. I left a comment there.
