# Blueprint just works once

**URL:** <https://forums.unrealengine.com/t/blueprint-just-works-once/307135>\
**Category:** Blueprint\
**Tags:** possible-bug, unreal-engine, Blueprint, question\
**Created:** [February 16, 2015, 7:07pm UTC](https://forums.unrealengine.com/t/blueprint-just-works-once/307135 "2015-02-16T19:07:58Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Creey](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Creey](https://forums.unrealengine.com/u/Creey)\
**Post date:** [February 16, 2015, 7:07pm UTC](https://forums.unrealengine.com/t/blueprint-just-works-once/307135/1 "2015-02-16T19:07:58Z")

</div>

Hey Guys,

I’ve created a System to pick up and throw a ball.

The problem is when I pick the ball up and throw it, I can’t pick it up again, but the blueprint works fine (I watched the blueprints with breakpoints to see if the events will fire)

[http://puu.sh/fZLSt/322c9610db.jpg](http://puu.sh/fZLSt/322c9610db.jpg)

[http://puu.sh/fZLZi/5c1d6a423f.jpg](http://puu.sh/fZLZi/5c1d6a423f.jpg)

---

<div class="post-metadata">

**Author:** ![Kilrogg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kilrogg](https://forums.unrealengine.com/u/Kilrogg)\
**Post date:** [February 16, 2015, 7:21pm UTC](https://forums.unrealengine.com/t/blueprint-just-works-once/307135/2 "2015-02-16T19:21:58Z")

</div>

You are not setting CanThrowBall back to true after throwing the ball. Looks like it’s true by default, so you can pick up the ball once, but then you set it to false after the ball is picked up.

---

<div class="post-metadata">

**Author:** ![Creey](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Creey](https://forums.unrealengine.com/u/Creey)\
**Post date:** [February 16, 2015, 7:48pm UTC](https://forums.unrealengine.com/t/blueprint-just-works-once/307135/3 "2015-02-16T19:48:08Z")

</div>

No that’s not the Problem because I manage the variable with a hitbox

[http://puu.sh/fZP68/7736cec9c1.jpg](http://puu.sh/fZP68/7736cec9c1.jpg)

That’s not a mistake.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_688474db](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_688474db](https://forums.unrealengine.com/u/anonymous_user_688474db)\
**Post date:** [February 16, 2015, 8:15pm UTC](https://forums.unrealengine.com/t/blueprint-just-works-once/307135/4 "2015-02-16T20:15:17Z")

</div>

Is this one or two blueprints?  
You can do it all in one.

If you can pick it up and throw it once, your issue happens,of course, after you throw it. Start looking there to see where the error is.

You are casting, but I don’t see a reason to for this. Just put a collider on your character, and whenever you overlapping with a ball, have a variable such as “touching ball” be true. If it is, and you can pick up ball, and the input to pick up is hit, do throw ball.

---

<div class="post-metadata">

**Author:** ![Creey](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Creey](https://forums.unrealengine.com/u/Creey)\
**Post date:** [February 16, 2015, 8:19pm UTC](https://forums.unrealengine.com/t/blueprint-just-works-once/307135/5 "2015-02-16T20:19:00Z")

</div>

Ok thanks, I will test if it works…

---

<div class="post-metadata">

**Author:** ![Creey](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Creey](https://forums.unrealengine.com/u/Creey)\
**Post date:** [February 16, 2015, 10:00pm UTC](https://forums.unrealengine.com/t/blueprint-just-works-once/307135/6 "2015-02-16T22:00:00Z")

</div>

Ok now I got something like this.

[http://puu.sh/g00PM/f68cf1c563.jpg](http://puu.sh/g00PM/f68cf1c563.jpg)

[http://puu.sh/g00Ro/a2fe89abb9.jpg](http://puu.sh/g00Ro/a2fe89abb9.jpg)

But now the “Attach Actor to Component” won’t work and I don’t know why.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_688474db](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_688474db](https://forums.unrealengine.com/u/anonymous_user_688474db)\
**Post date:** [February 16, 2015, 11:19pm UTC](https://forums.unrealengine.com/t/blueprint-just-works-once/307135/7 "2015-02-16T23:19:45Z")

</div>

You need to fix the connection with the overlap to the branch, try that and see what happens(?)

---

<div class="post-metadata">

**Author:** ![Creey](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Creey](https://forums.unrealengine.com/u/Creey)\
**Post date:** [February 17, 2015, 1:55pm UTC](https://forums.unrealengine.com/t/blueprint-just-works-once/307135/8 "2015-02-17T13:55:43Z")

</div>

No no, that works.  
The Problem is in the second picture, the “Attach Actor to Component”- node doesn’t seem to work.

---

<div class="post-metadata">

**Author:** ![Creey](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Creey](https://forums.unrealengine.com/u/Creey)\
**Post date:** [February 23, 2015, 10:25am UTC](https://forums.unrealengine.com/t/blueprint-just-works-once/307135/9 "2015-02-23T10:25:01Z")

</div>

Does anyone know why that won’t work?
