# Need help with dropping actor / seperating actors within BP

**URL:** <https://forums.unrealengine.com/t/need-help-with-dropping-actor-seperating-actors-within-bp/553947>\
**Category:** Blueprint\
**Tags:** unreal-engine, UE4, UE4-27, Blueprint, question\
**Created:** [May 10, 2022, 6:00pm UTC](https://forums.unrealengine.com/t/need-help-with-dropping-actor-seperating-actors-within-bp/553947 "2022-05-10T18:00:54Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![PapaSheev66](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PapaSheev66](https://forums.unrealengine.com/u/PapaSheev66)\
**Post date:** [May 10, 2022, 6:00pm UTC](https://forums.unrealengine.com/t/need-help-with-dropping-actor-seperating-actors-within-bp/553947/1 "2022-05-10T18:00:54Z")

</div>

Hey Everyone,

I am trying to make an openable drawer with a file actor inside. I have managed to make the drawer work and am able to pick up the file mesh however, I am unable to get the drop item code working correctly;

Character BP:

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

Drawer Event graph:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/0/5/f05c6b74372ec817b6550804d2b60aab40960881.jpeg)

Drawer-File pick up function:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/6/d/96d7e1f4083518bc2d0b374234237bd047ddc35c.png)

Drawer-File drop function:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/6/b/36b644f6e95ec7cc9a7c66a4c78567e2de55ac16.jpeg)

I am of the opinion that the file wont drop because its not set as the scene root, however if I were to do that the rest of the BP would stop working (drawer movement).

The reason I think this is becuase the pick up and drop functions work fine on individual actor BP’s;  
I believe there is a way to get the drop function working, I just cant see it.

Perhaps there is a node or set of nodes that will allow me to focus just the file actor?

---

<div class="post-metadata">

**Author:** ![DavidNixon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DavidNixon](https://forums.unrealengine.com/u/DavidNixon)\
**Post date:** [May 10, 2022, 7:47pm UTC](https://forums.unrealengine.com/t/need-help-with-dropping-actor-seperating-actors-within-bp/553947/2 "2022-05-10T19:47:24Z")

</div>

Haven’t tested it, but maybe a DetachFromActor node or a DetachActorFromActor node would work?

---

<div class="post-metadata">

**Author:** ![isikdev](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/isikdev/32/991020_2.png) [@isikdev](https://forums.unrealengine.com/u/isikdev)\
**Post date:** [May 10, 2022, 7:59pm UTC](https://forums.unrealengine.com/t/need-help-with-dropping-actor-seperating-actors-within-bp/553947/3 "2022-05-10T19:59:51Z")

</div>

What exactly is happening here? Are you getting errors? Or is it just not dropping/simulating physics on the file actor? A little bit more detail would be helpful.

Have you set the static mesh to movable? Is it using correct collision settings? Also, maybe try setting the collision before simulating physics, not really sure about this one!

---

<div class="post-metadata">

**Author:** ![PapaSheev66](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PapaSheev66](https://forums.unrealengine.com/u/PapaSheev66)\
**Post date:** [May 10, 2022, 8:08pm UTC](https://forums.unrealengine.com/t/need-help-with-dropping-actor-seperating-actors-within-bp/553947/4 "2022-05-10T20:08:20Z")

</div>

@DavidNixon Im actually using DetachFromActor node on the BP’s for items that can be picked up around the scene, doesnt seem too work when I use it in this case though.

---

<div class="post-metadata">

**Author:** ![PapaSheev66](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PapaSheev66](https://forums.unrealengine.com/u/PapaSheev66)\
**Post date:** [May 10, 2022, 8:13pm UTC](https://forums.unrealengine.com/t/need-help-with-dropping-actor-seperating-actors-within-bp/553947/5 "2022-05-10T20:13:20Z")

</div>

@isikdev So the drawer is operable and the Pick Up function is working correctly so I am able to pick up the file out of the drawer.

However, the issue is that the Drop item function isnt working so the file is stuck as being equipped.

The function works on individual actor blueprints e.g I can pick up and drop a machete in my scene; I have tried incorporating that code into my drawer BP and so far, its only the drop item function that isnt working, hope this makes it a bit clearer.

---

<div class="post-metadata">

**Author:** ![L.F.A](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/l.f.a/32/1194525_2.png) [@L.F.A](https://forums.unrealengine.com/u/L.F.A)\
**Post date:** [May 10, 2022, 8:15pm UTC](https://forums.unrealengine.com/t/need-help-with-dropping-actor-seperating-actors-within-bp/553947/6 "2022-05-10T20:15:48Z")

</div>

You may want to use a workflow that, instead of Detaching from component, deletes the file mesh component and spawn an actor in that world transform with the same file mesh, simulated physics, and collisions settings.

---

<div class="post-metadata">

**Author:** ![isikdev](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/isikdev/32/991020_2.png) [@isikdev](https://forums.unrealengine.com/u/isikdev)\
**Post date:** [May 10, 2022, 8:18pm UTC](https://forums.unrealengine.com/t/need-help-with-dropping-actor-seperating-actors-within-bp/553947/7 "2022-05-10T20:18:09Z")

</div>

Exactly what I was thinking. Not the cleanest way but I’ve done this many times on my projects and it works like a gem. A lot easier to implement as well!

---

<div class="post-metadata">

**Author:** ![L.F.A](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/l.f.a/32/1194525_2.png) [@L.F.A](https://forums.unrealengine.com/u/L.F.A)\
**Post date:** [May 10, 2022, 8:20pm UTC](https://forums.unrealengine.com/t/need-help-with-dropping-actor-seperating-actors-within-bp/553947/8 "2022-05-10T20:20:17Z")

</div>

Yes, indeed, and you can make the spawned actor’s mesh a variable that reads the file mesh from the drawer. So, you have a procedurally generated actor spawner. This technique is used for spawning arrows or bullet cases. Glad it helped.

---

<div class="post-metadata">

**Author:** ![PapaSheev66](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PapaSheev66](https://forums.unrealengine.com/u/PapaSheev66)\
**Post date:** [May 10, 2022, 8:26pm UTC](https://forums.unrealengine.com/t/need-help-with-dropping-actor-seperating-actors-within-bp/553947/9 "2022-05-10T20:26:45Z")

</div>

Thanks for the sound advice, Im very fresh Unreal so I’ll see how far I can get! 🤣

---

<div class="post-metadata">

**Author:** ![isikdev](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/isikdev/32/991020_2.png) [@isikdev](https://forums.unrealengine.com/u/isikdev)\
**Post date:** [May 10, 2022, 8:40pm UTC](https://forums.unrealengine.com/t/need-help-with-dropping-actor-seperating-actors-within-bp/553947/10 "2022-05-10T20:40:14Z")

</div>

Not exactly what you want but similar logic here on something I’m working on. NPC dies and drops an item that must be specified, from my item list:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/b/a/cba32751fa429b201441a2fce64e04b7a63a3ce5.png)

For your case, I’d go about it something like so:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/4/f/54fd1a05071d1d14d34ffd4115e0e23fc48551e4.png)

Best of luck =)

---

<div class="post-metadata">

**Author:** ![PapaSheev66](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PapaSheev66](https://forums.unrealengine.com/u/PapaSheev66)\
**Post date:** [May 10, 2022, 9:49pm UTC](https://forums.unrealengine.com/t/need-help-with-dropping-actor-seperating-actors-within-bp/553947/11 "2022-05-10T21:49:05Z")

</div>

So I have tried implementing that code with the pick up interface I’ve set.

I’ve set up a new input specifically to handle dropping items out of drawers:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/f/6/1f6e68132509430ed1317ec90b66800a110f1c2f.png)

In the event graph, the drop component BP interface calls the drop item function:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/5/5/155422e8ff47302afb47bc3023340425eab62008.png)

In the drop item function I have implemented the code you suggested:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/1/a/e1af6a01c412c9988470932311214d0ebdc3e9a9.jpeg)

To my untrained eye I dont see why this shouldnt work. The logic makes sense but something just doesnt seem to be adding up.

---

<div class="post-metadata">

**Author:** ![L.F.A](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/l.f.a/32/1194525_2.png) [@L.F.A](https://forums.unrealengine.com/u/L.F.A)\
**Post date:** [May 10, 2022, 9:57pm UTC](https://forums.unrealengine.com/t/need-help-with-dropping-actor-seperating-actors-within-bp/553947/12 "2022-05-10T21:57:55Z")

</div>

Got it. You forgot to connect ‘destroy component’ and Set Visibility. The flow was interrupted.  
Hope that helps.

---

<div class="post-metadata">

**Author:** ![PapaSheev66](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PapaSheev66](https://forums.unrealengine.com/u/PapaSheev66)\
**Post date:** [May 10, 2022, 10:10pm UTC](https://forums.unrealengine.com/t/need-help-with-dropping-actor-seperating-actors-within-bp/553947/13 "2022-05-10T22:10:29Z")

</div>

hasnt affected the result unfortunately 😲

---

<div class="post-metadata">

**Author:** ![isikdev](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/isikdev/32/991020_2.png) [@isikdev](https://forums.unrealengine.com/u/isikdev)\
**Post date:** [May 10, 2022, 10:24pm UTC](https://forums.unrealengine.com/t/need-help-with-dropping-actor-seperating-actors-within-bp/553947/14 "2022-05-10T22:24:32Z")

</div>

Hmm, getting any accessed none errors or nothing at all?

---

<div class="post-metadata">

**Author:** ![L.F.A](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/l.f.a/32/1194525_2.png) [@L.F.A](https://forums.unrealengine.com/u/L.F.A)\
**Post date:** [May 10, 2022, 10:36pm UTC](https://forums.unrealengine.com/t/need-help-with-dropping-actor-seperating-actors-within-bp/553947/15 "2022-05-10T22:36:03Z")

</div>

I got it now. If you destroy the file component, ‘set visibility’ will return errors. So, second node is not necessary. Try connecting destroy component to spawn actor from class.

---

<div class="post-metadata">

**Author:** ![PapaSheev66](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PapaSheev66](https://forums.unrealengine.com/u/PapaSheev66)\
**Post date:** [May 10, 2022, 10:42pm UTC](https://forums.unrealengine.com/t/need-help-with-dropping-actor-seperating-actors-within-bp/553947/16 "2022-05-10T22:42:25Z")

</div>

Not at all, I wonder if its a deeper problem with how the interface operates with the BP? I can see that “Event Interact With” fires off in the even graph but when I press the key for “Even Drop Component”, nothing highlights as if its not even getting to the drop component stage?

---

<div class="post-metadata">

**Author:** ![PapaSheev66](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PapaSheev66](https://forums.unrealengine.com/u/PapaSheev66)\
**Post date:** [May 10, 2022, 10:43pm UTC](https://forums.unrealengine.com/t/need-help-with-dropping-actor-seperating-actors-within-bp/553947/17 "2022-05-10T22:43:17Z")

</div>

hmm still doing the same, maybe the problem runs deeper like I mentioned to IsIkdev in the last reply

---

<div class="post-metadata">

**Author:** ![L.F.A](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/l.f.a/32/1194525_2.png) [@L.F.A](https://forums.unrealengine.com/u/L.F.A)\
**Post date:** [May 10, 2022, 10:47pm UTC](https://forums.unrealengine.com/t/need-help-with-dropping-actor-seperating-actors-within-bp/553947/18 "2022-05-10T22:47:26Z")

</div>

Try to add ‘print screen’ nodes in the drop item event to see if something is triggering correctly. And review your entire flow.
