# How do i force a release upon not following a condition?

**URL:** <https://forums.unrealengine.com/t/how-do-i-force-a-release-upon-not-following-a-condition/1169639>\
**Category:** Blueprint\
**Tags:** key, unreal-engine, UE5, Blueprint, question\
**Created:** [May 18, 2023, 9:35am UTC](https://forums.unrealengine.com/t/how-do-i-force-a-release-upon-not-following-a-condition/1169639 "2023-05-18T09:35:09Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![ExpectedYou](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/expectedyou/32/557745_2.png) [@ExpectedYou](https://forums.unrealengine.com/u/ExpectedYou)\
**Post date:** [May 18, 2023, 9:35am UTC](https://forums.unrealengine.com/t/how-do-i-force-a-release-upon-not-following-a-condition/1169639/1 "2023-05-18T09:35:09Z")

</div>

I want to be able to force a release on the key when the condition of `points >= 10` is `false`

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/f/f/effdbe97d2ba50ce6754dfc8963db2811dc65856.png)

However, when **held down** ; I am forever allowed to follow what the condition acceptance once was, which was true so boosting is forever true **until i release** spacebar, of course.

Ive heard theres ways to go around this simple logic but I cannot find a solution to this.  
**OBS!** I do NOT have a `widget interaction` for the “`release key`” node unless there arent any default placed ones on `character` bp class

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [May 18, 2023, 9:48am UTC](https://forums.unrealengine.com/t/how-do-i-force-a-release-upon-not-following-a-condition/1169639/2 "2023-05-18T09:48:32Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ExpectedYou](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/expectedyou/32/557745_2.png) [@ExpectedYou](https://forums.unrealengine.com/u/ExpectedYou)\
**Post date:** [May 18, 2023, 2:12pm UTC](https://forums.unrealengine.com/t/how-do-i-force-a-release-upon-not-following-a-condition/1169639/3 "2023-05-18T14:12:12Z")

</div>

I can still just hold down spacebar and reach 9 but still have the boosting speed

---

<div class="post-metadata">

**Author:** ![BIGTIMEMASTER](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bigtimemaster/32/710746_2.png) [@BIGTIMEMASTER](https://forums.unrealengine.com/u/BIGTIMEMASTER)\
**Post date:** [May 18, 2023, 2:33pm UTC](https://forums.unrealengine.com/t/how-do-i-force-a-release-upon-not-following-a-condition/1169639/4 "2023-05-18T14:33:59Z")

</div>

you can move the logic to a custom event that the Released exec pin fires.

Gate off the ability to fire the event with the condition as shown, then also poll for the condition and call the event when the condition becomes true.

Poll can mean watch the condition on tick, or on a timer, or if you know when the condition changes you can fire event from there.

Basically it’s like separating this little nugget of logic to be it’s own thing, then you can call it from multiple places using multiple conditions.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [May 18, 2023, 2:40pm UTC](https://forums.unrealengine.com/t/how-do-i-force-a-release-upon-not-following-a-condition/1169639/5 "2023-05-18T14:40:58Z")

</div>

How, it won’t go down the true branch if points \> 10 ?..

Hence, points must be \> 10.

---

<div class="post-metadata">

**Author:** ![ExpectedYou](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/expectedyou/32/557745_2.png) [@ExpectedYou](https://forums.unrealengine.com/u/ExpectedYou)\
**Post date:** [May 18, 2023, 5:22pm UTC](https://forums.unrealengine.com/t/how-do-i-force-a-release-upon-not-following-a-condition/1169639/6 "2023-05-18T17:22:16Z")

</div>

Does “pressed” only occur once or loop when held down?

If its once then the condition will always be true since thats what it started with,  
If its looped then this would go through but it doesnt, same would any print text

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [May 18, 2023, 5:22pm UTC](https://forums.unrealengine.com/t/how-do-i-force-a-release-upon-not-following-a-condition/1169639/7 "2023-05-18T17:22:49Z")

</div>

Once, I think.

---

<div class="post-metadata">

**Author:** ![ExpectedYou](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/expectedyou/32/557745_2.png) [@ExpectedYou](https://forums.unrealengine.com/u/ExpectedYou)\
**Post date:** [May 18, 2023, 5:24pm UTC](https://forums.unrealengine.com/t/how-do-i-force-a-release-upon-not-following-a-condition/1169639/8 "2023-05-18T17:24:27Z")

</div>

Do you know any way for this to be a loop instead? When people are talking about charged attacks in rpg games, dont they need to know when theyre holding the mousebutton down or casually pressing mouse button?

Or overall if theres any other than “Spacebar” function

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [May 18, 2023, 5:27pm UTC](https://forums.unrealengine.com/t/how-do-i-force-a-release-upon-not-following-a-condition/1169639/9 "2023-05-18T17:27:21Z")

</div>

Then you need to use a axis input node, like inside the player character.

---

<div class="post-metadata">

**Author:** ![BIGTIMEMASTER](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bigtimemaster/32/710746_2.png) [@BIGTIMEMASTER](https://forums.unrealengine.com/u/BIGTIMEMASTER)\
**Post date:** [May 18, 2023, 5:33pm UTC](https://forums.unrealengine.com/t/how-do-i-force-a-release-upon-not-following-a-condition/1169639/10 "2023-05-18T17:33:18Z")

</div>

using enhanced input will give you much easier time for stuff like you’ve mentioned. you can use binary inputs but also detect when they are held, and also add special triggers (like hold for X amount of time fires a trigger).

you can wrangle an input axis to act like a binary input (on / off) but it’s a ton more code that you have to write, compared to letting the epic team handle all that for you

---

<div class="post-metadata">

**Author:** ![ExpectedYou](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/expectedyou/32/557745_2.png) [@ExpectedYou](https://forums.unrealengine.com/u/ExpectedYou)\
**Post date:** [May 18, 2023, 6:35pm UTC](https://forums.unrealengine.com/t/how-do-i-force-a-release-upon-not-following-a-condition/1169639/11 "2023-05-18T18:35:41Z")

</div>

I have no idea what an axis input node is, Do you mean analog keys?  
like this one?  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/2/9/d29cea4d95fe99403274cdb469f60b8af376148c.png)

---

<div class="post-metadata">

**Author:** ![ExpectedYou](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/expectedyou/32/557745_2.png) [@ExpectedYou](https://forums.unrealengine.com/u/ExpectedYou)\
**Post date:** [May 18, 2023, 6:37pm UTC](https://forums.unrealengine.com/t/how-do-i-force-a-release-upon-not-following-a-condition/1169639/12 "2023-05-18T18:37:56Z")

</div>

I searched for “Binary inputs” in unreal engine documentary and as I was looking for the “input action” but I have no idea how to find this since it doesnt exist for me

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/f/2/8f2ba580bb8ed5d52592805c3d5143a864e9cb00.png)  
, any idea why or am I even doing it correctly?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [May 18, 2023, 6:53pm UTC](https://forums.unrealengine.com/t/how-do-i-force-a-release-upon-not-following-a-condition/1169639/13 "2023-05-18T18:53:22Z")

</div>

If you’re on 5.x, you can just look inside the first for third person character. It’s the new enhanced inputs 🙂

---

<div class="post-metadata">

**Author:** ![BIGTIMEMASTER](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bigtimemaster/32/710746_2.png) [@BIGTIMEMASTER](https://forums.unrealengine.com/u/BIGTIMEMASTER)\
**Post date:** [May 18, 2023, 6:57pm UTC](https://forums.unrealengine.com/t/how-do-i-force-a-release-upon-not-following-a-condition/1169639/14 "2023-05-18T18:57:03Z")

</div>

sorry, that is my own terminology because i couldnt think what else to call it.

Basically there are two types of input. Action and axis.

An action turns on and off. That’s what I am calling binary. Binary means value can only be 0 or 1, aka true / false, aka on and off.

Axis is reading a value constantly to detect values between 0 - 1. Like if joystick is pressed halfway, it would be 0.5.

You are asking so many fundamental questions though, you really ought to go through a handful of epics beginner tutorials you can find in the learning area. There’s just tons of stuff that if you don’t have somebody just show you right off the bat, you’ll spend ages doing things in suboptimal way simply because you don’t know what exist in the engine.

An intro to enhanced input tutorial might be a great place to start.

---

<div class="post-metadata">

**Author:** ![ExpectedYou](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/expectedyou/32/557745_2.png) [@ExpectedYou](https://forums.unrealengine.com/u/ExpectedYou)\
**Post date:** [May 18, 2023, 7:03pm UTC](https://forums.unrealengine.com/t/how-do-i-force-a-release-upon-not-following-a-condition/1169639/15 "2023-05-18T19:03:41Z")

</div>

Im using topdown and im not really finding the input category on “create advanced asset”

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/f/2/8f2ba580bb8ed5d52592805c3d5143a864e9cb00.png)

---

<div class="post-metadata">

**Author:** ![ExpectedYou](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/expectedyou/32/557745_2.png) [@ExpectedYou](https://forums.unrealengine.com/u/ExpectedYou)\
**Post date:** [May 18, 2023, 7:05pm UTC](https://forums.unrealengine.com/t/how-do-i-force-a-release-upon-not-following-a-condition/1169639/16 "2023-05-18T19:05:59Z")

</div>

So theres currently no easy and simple way to make this “hold down space to boost” possible?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [May 18, 2023, 7:06pm UTC](https://forums.unrealengine.com/t/how-do-i-force-a-release-upon-not-following-a-condition/1169639/17 "2023-05-18T19:06:31Z")

</div>

When you right click and the menu appears, just start typing ‘input’. This

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

is what you want. But I would recommend watching a vid first

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/a/8/6a861d5cce2cb96395b0550df9aa7515c6f021cb.jpeg "Creating Character Movement With The New Enhanced Axis Mappings In Unreal Engine 5 (Tutorial)") ](https://www.youtube.com/watch?v=Z9zEEY7dGaM)

---

<div class="post-metadata">

**Author:** ![BIGTIMEMASTER](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bigtimemaster/32/710746_2.png) [@BIGTIMEMASTER](https://forums.unrealengine.com/u/BIGTIMEMASTER)\
**Post date:** [May 18, 2023, 7:12pm UTC](https://forums.unrealengine.com/t/how-do-i-force-a-release-upon-not-following-a-condition/1169639/18 "2023-05-18T19:12:03Z")

</div>

well the easiest method to do input in unreal right now is the enhanced input.

yes, it has some weird terminology and you have to have some fundamental understanding of some programming concepts for it to make sense, and that can take some hours to get a handle on… but, there is tons of video tutorials explaining it all. you can take your pick like a buffet - if one author has a voice that annoys you, find another, lol.

that is easiest because epic has made a lot of things like what you want to do just a few parameters you can turn on or off. So just a ton less code you’ll have to write.

In general, game programming is always a much bigger PITA than you’d expect it to be, so just get used to that.
