Why is character pickup disabled when it's holding an item?

Hey all,

I have a blueprint for a character (BM) that can carry another character (KH). Here it is:

Theoretically, this blueprints works just fine: BM can pickup KH and drop it off by using the same input key. I’m using the FlipFlop node for this.

However, it stops working properly once KH is carrying an item. In that case, BM will still be able to pick up KH and carry it around while KH is holding the item - but BM is no longer able to drop KH off, it remains attached no matter what!

I’m suspecting it has to do with the fact that KH is holding an item - I can’t think of another explanation. But how can this be resolved? I’m at the end of my wits.

If it helps, here is a blueprint of the item:

Could you try not using a FlipFlop and instead bind the two actions to two different keys to see if what you did is not the problem.
I see you have in the blueprint attach actor to component and then detach actor from actor. Perhaps when you hold the item, it is using up the same component/socket as the character that you pickup. So use DetachFromComponent instead of DetachActorFromActor.

I tried your suggestion for binding the two actions to different keys and now it works. So I’m guessing something is going on with the FlipFlop node?

Unfortunately there is no Detach node that refers to Component, only DetachActorFromActor. The item gets attached to a specific item-socket on KH, while KH gets attached to a specific character-socket found on BM (is that what you meant?).

Okay, you can forget what I said after the FlipFlop.

About the FlipFlop, I can see it only triggers if you are in range of the character you are picking up, correct? Perhaps instead of a FlipFlop, use another branch and the condition will be a Boolean variable that is called CharacterPickedUp.

  • On True, you do the dropping character stuff and set CharacterPickedUp to False

  • On False, you do the picking up character stuff and set CharacterPickedUp to True

When you press the Interact key with no character, it will see if you currently have a character picked up. if there is no character that you currently have picked up, it picks up the character. When you press it again, you should drop it.

That sounds like it makes sense. Thanks! Will give this a try :slight_smile:

Np, let me know.

I eventually decided that I will use another system for the gameplay and solved the problem through another method. For tracking purposes I will mark your answer as accepted since it might help others :slight_smile:

Np, glad everything worked out good!