# \#condition

**URL:** https://forums.unrealengine.com/tag/condition/2486.md

[Latest](https://forums.unrealengine.com/latest.md) · [Categories](https://forums.unrealengine.com/categories.md) · [Tags](https://forums.unrealengine.com/tags.md)

---

## [Set blackboard value in tree](https://forums.unrealengine.com/t/set-blackboard-value-in-tree/443692)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_6e65e547](https://forums.unrealengine.com/u/anonymous_user_6e65e547)\
**Replies:** 7\
**Last updated:** [February 25, 2019, 6:33pm UTC](https://forums.unrealengine.com/t/set-blackboard-value-in-tree/443692 "2019-02-25T18:33:16Z")

</div>

Hi there! How can I set a blackboard value (boolean) in behavior tree? Do I must create a task to do it? It seems dirty to me, to change it there. The boolean selects which parts of the tree should be executed so to me …

---

## [How to add condition like if statments for blueprint?](https://forums.unrealengine.com/t/how-to-add-condition-like-if-statments-for-blueprint/300632)

<div class="topic-metadata">

**Author:** [@DBdev\_1](https://forums.unrealengine.com/u/DBdev_1)\
**Replies:** 4\
**Last updated:** [May 25, 2018, 4:14am UTC](https://forums.unrealengine.com/t/how-to-add-condition-like-if-statments-for-blueprint/300632 "2018-05-25T04:14:07Z")

</div>

I’m making a door that is triggered to open when the player enters the trigger box && presses the E button while in the trigger box, how would I go about making it so that you have to be in the trigger box and to be pres…

---

## [Trigger Under Conditions (UE 4-27)](https://forums.unrealengine.com/t/trigger-under-conditions-ue-4-27/505884)

<div class="topic-metadata">

**Author:** [@CurleeD85](https://forums.unrealengine.com/u/CurleeD85)\
**Replies:** 5\
**Last updated:** [March 11, 2022, 7:32pm UTC](https://forums.unrealengine.com/t/trigger-under-conditions-ue-4-27/505884 "2022-03-11T19:32:45Z")

</div>

I’m now experimenting with triggers. I have figured out how to use triggers to start level sequences. But, I’m stumped about how I can make a trigger work under special conditions; such as if an unrelated object’s integ…

---

## [Winner Condition](https://forums.unrealengine.com/t/winner-condition/490054)

<div class="topic-metadata">

**Author:** [@MongeRastafari](https://forums.unrealengine.com/u/MongeRastafari)\
**Replies:** 4\
**Last updated:** [October 22, 2021, 11:25am UTC](https://forums.unrealengine.com/t/winner-condition/490054 "2021-10-22T11:25:42Z")

</div>

Can’t u just compare the integer value of the kills? If Player1 kills \> Player2 kills do …

---

## [Let some objects pass through an object and not let other objects](https://forums.unrealengine.com/t/let-some-objects-pass-through-an-object-and-not-let-other-objects/488747)

<div class="topic-metadata">

**Author:** [@AmnesiacKoala](https://forums.unrealengine.com/u/AmnesiacKoala)\
**Replies:** 3\
**Last updated:** [September 14, 2021, 2:44pm UTC](https://forums.unrealengine.com/t/let-some-objects-pass-through-an-object-and-not-let-other-objects/488747 "2021-09-14T14:44:44Z")

</div>

Hello people, I hope you’re healthy and good. I’m working on a 2D tower-defence game and I have a problem; There is a tower in my game and my character is trying to protect it. What I want to do is adding a condition t…

---

## [Branches returning both true and false.](https://forums.unrealengine.com/t/branches-returning-both-true-and-false/488408)

<div class="topic-metadata">

**Author:** [@PraxisCod01](https://forums.unrealengine.com/u/PraxisCod01)\
**Replies:** 2\
**Last updated:** [September 5, 2021, 12:45pm UTC](https://forums.unrealengine.com/t/branches-returning-both-true-and-false/488408 "2021-09-05T12:45:41Z")

</div>

Also it is float - you can use https://docs.unrealengine.com/4.26/en-US/BlueprintAPI/Math/Float/NearlyEqual\_float/

---

## [Behavior tree decorator not working?](https://forums.unrealengine.com/t/behavior-tree-decorator-not-working/483817)

<div class="topic-metadata">

**Author:** [@AleMarcati](https://forums.unrealengine.com/u/AleMarcati)\
**Replies:** 1\
**Last updated:** [May 24, 2021, 1:33am UTC](https://forums.unrealengine.com/t/behavior-tree-decorator-not-working/483817 "2021-05-24T01:33:34Z")

</div>

I’m trying to learn how to use the behavior tree and started by making a very simple behavior tree. The AI checks if it can see the player character, if it can in goes to the player’s location, if not it moves to a rando…

---

## [Set boolean true with button press and check status](https://forums.unrealengine.com/t/set-boolean-true-with-button-press-and-check-status/481995)

<div class="topic-metadata">

**Author:** [@nobodysproduction](https://forums.unrealengine.com/u/nobodysproduction)\
**Replies:** 2\
**Last updated:** [April 16, 2021, 3:57pm UTC](https://forums.unrealengine.com/t/set-boolean-true-with-button-press-and-check-status/481995 "2021-04-16T15:57:29Z")

</div>

Hi everybody So… I begin to feel very stupid. All I try to do is: Press F and set a variable to “true” - before pressing F it should be false. (done within Level Blueprint) Check in another Blueprint (which is a car …

---

## [Trying to make a Condition?](https://forums.unrealengine.com/t/trying-to-make-a-condition/463323)

<div class="topic-metadata">

**Author:** [@OMGconex](https://forums.unrealengine.com/u/OMGconex)\
**Replies:** 1\
**Last updated:** [April 4, 2020, 8:12pm UTC](https://forums.unrealengine.com/t/trying-to-make-a-condition/463323 "2020-04-04T20:12:51Z")

</div>

hey i have something i want to figure out i have Integers representing these stats Total amount Amount per row What index im on so i want to make a branch with a condition that only goes true if i am on the first in…

---

## [Velocity condition not working](https://forums.unrealengine.com/t/velocity-condition-not-working/461525)

<div class="topic-metadata">

**Author:** [@Vrv](https://forums.unrealengine.com/u/Vrv)\
**Replies:** 10\
**Last updated:** [February 9, 2020, 2:18pm UTC](https://forums.unrealengine.com/t/velocity-condition-not-working/461525 "2020-02-09T14:18:58Z")

</div>

Hi there ! ^^ I got a problem and I can’t figure it out why is not working. I want to be able to make a condition based on character movement speed but this thing seems to not fire at all. I don’t know what am I missing.…

---

## [Condition to End/Pause Game](https://forums.unrealengine.com/t/condition-to-end-pause-game/459877)

<div class="topic-metadata">

**Author:** [@Deygus](https://forums.unrealengine.com/u/Deygus)\
**Replies:** 4\
**Last updated:** [December 24, 2019, 8:55pm UTC](https://forums.unrealengine.com/t/condition-to-end-pause-game/459877 "2019-12-24T20:55:19Z")

</div>

I am stuck on trying to figure out how to create a Condition that ends the game when a Progress Bar is filled. I currently have this set to 500 but cannot seem to figure out how to get the condition to end the game and …

---

## [Condition Based On Text Input By Player (BP)](https://forums.unrealengine.com/t/condition-based-on-text-input-by-player-bp/452788)

<div class="topic-metadata">

**Author:** [@SamzDev](https://forums.unrealengine.com/u/SamzDev)\
**Replies:** 3\
**Last updated:** [July 25, 2019, 11:58pm UTC](https://forums.unrealengine.com/t/condition-based-on-text-input-by-player-bp/452788 "2019-07-25T23:58:12Z")

</div>

Hi there so I’m working on a code system to gift players free currency. I have the text box set up but don’t know how to make a condition for this. I’m looking for something to “IF PLAYER ENTERS TEXT IN THE TEXT BOX, ADD…

---

## [Condition doesn't work!](https://forums.unrealengine.com/t/condition-doesnt-work/441310)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_1ce6a75b](https://forums.unrealengine.com/u/anonymous_user_1ce6a75b)\
**Replies:** 12\
**Last updated:** [January 16, 2019, 1:49pm UTC](https://forums.unrealengine.com/t/condition-doesnt-work/441310 "2019-01-16T13:49:22Z")

</div>

Hello, i have problem with condition node, i am still beginner with blueprints. As you see in the picture below, i built a logic with nodes, my goal was to spawn a box on the same place it was destroyed. I’m trying to u…

---

## [Branch Condition with divisible number](https://forums.unrealengine.com/t/branch-condition-with-divisible-number/437066)

<div class="topic-metadata">

**Author:** [@miaminl](https://forums.unrealengine.com/u/miaminl)\
**Replies:** 6\
**Last updated:** [November 5, 2018, 10:04pm UTC](https://forums.unrealengine.com/t/branch-condition-with-divisible-number/437066 "2018-11-05T22:04:01Z")

</div>

Hello at everybody, how can i do the correct branch condition? I explain the problem: in my game, there is a variable “Score” and it increments 1, 2, 3, 4 and so on during the game. Basically, the character gains a coin …

---

## [Sound won't start if using branch condition](https://forums.unrealengine.com/t/sound-wont-start-if-using-branch-condition/433033)

<div class="topic-metadata">

**Author:** [@Vrv](https://forums.unrealengine.com/u/Vrv)\
**Replies:** 4\
**Last updated:** [September 4, 2018, 1:23pm UTC](https://forums.unrealengine.com/t/sound-wont-start-if-using-branch-condition/433033 "2018-09-04T13:23:24Z")

</div>

Hi all ! please help me out…I have a problem with the sound play…it won’t start if I’m using branch condition…and I don’t know why…the same condition in other places works perfectly…but for sound it doesn’t…and even the …

---

## [Material deciding a branch outcome](https://forums.unrealengine.com/t/material-deciding-a-branch-outcome/430378)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_15de4253](https://forums.unrealengine.com/u/anonymous_user_15de4253)\
**Replies:** 2\
**Last updated:** [July 28, 2018, 3:30pm UTC](https://forums.unrealengine.com/t/material-deciding-a-branch-outcome/430378 "2018-07-28T15:30:19Z")

</div>

I’m currently editing a Rocket League type game which I have not made myself. In this game I am trying to set up parameters based on the distance between two players. In the blueprints the player is auto assigned a colou…

---

## [Set Branch to true when x out of y conditions are met](https://forums.unrealengine.com/t/set-branch-to-true-when-x-out-of-y-conditions-are-met/395732)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_8842144f](https://forums.unrealengine.com/u/anonymous_user_8842144f)\
**Replies:** 4\
**Last updated:** [June 6, 2017, 12:13pm UTC](https://forums.unrealengine.com/t/set-branch-to-true-when-x-out-of-y-conditions-are-met/395732 "2017-06-06T12:13:01Z")

</div>

If you get your boolean and drag out a pin from it, you’ll be able to convert it to an integer by typing ToInt. Convert all your booleans to integers, and then add them together. You can then check if this number is abov…

---

## [Blueprint ThumbStick Conditions?](https://forums.unrealengine.com/t/blueprint-thumbstick-conditions/372994)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_91e3d89c](https://forums.unrealengine.com/u/anonymous_user_91e3d89c)\
**Replies:** 0\
**Last updated:** [October 10, 2016, 9:44pm UTC](https://forums.unrealengine.com/t/blueprint-thumbstick-conditions/372994 "2016-10-10T21:44:45Z")

</div>

Goal: I am making a 1st person swordplay level, and will essentially have a “frontal-cone-range of motion” for the stabbing directions. Idea: To possibly have 9 stabbing animations and blend between them depending on th…

---

## [Nativize Error - Ensure Condition Failed @ Line 127](https://forums.unrealengine.com/t/nativize-error-ensure-condition-failed-line-127/369488)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_089a4978](https://forums.unrealengine.com/u/anonymous_user_089a4978)\
**Replies:** 6\
**Last updated:** [September 19, 2016, 12:46pm UTC](https://forums.unrealengine.com/t/nativize-error-ensure-condition-failed-line-127/369488 "2016-09-19T12:46:06Z")

</div>

I can’t compile the game when ‘Nativize Assets’ option is enabled. It gives some errors but I am unable to address it. \[2016.09.05-21.22.35:166\]\[ 0\]LogBlueprint:Warning: Compiler Warning A node that generated no code o…

---

## [Blueprint equivalent to ?: operator](https://forums.unrealengine.com/t/blueprint-equivalent-to-operator/365635)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_3dcc50b21](https://forums.unrealengine.com/u/anonymous_user_3dcc50b21)\
**Replies:** 1\
**Last updated:** [July 30, 2016, 4:10pm UTC](https://forums.unrealengine.com/t/blueprint-equivalent-to-operator/365635 "2016-07-30T16:10:24Z")

</div>

I’m looking for the Blueprint equivalent of the ternary operator: condition ? trueResult : falseResult So a node or node graph that has those three inputs and a single output, the value of which is either trueResult or…

---

## [Activate trigger on multiple actor overlap](https://forums.unrealengine.com/t/activate-trigger-on-multiple-actor-overlap/364491)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_8842144f](https://forums.unrealengine.com/u/anonymous_user_8842144f)\
**Replies:** 6\
**Last updated:** [July 19, 2016, 4:00pm UTC](https://forums.unrealengine.com/t/activate-trigger-on-multiple-actor-overlap/364491 "2016-07-19T16:00:46Z")

</div>

Hey all, I have a triggerbox in my level that will trigger an event only when all three characters of the game are inside of the triggerbox. How do I set up such a condition for the triggerbox? I’m assuming I need to …

---

## [Conditional Blueprints](https://forums.unrealengine.com/t/conditional-blueprints/362547)

<div class="topic-metadata">

**Author:** [@Dark\_Jubei](https://forums.unrealengine.com/u/Dark_Jubei)\
**Replies:** 6\
**Last updated:** [July 1, 2016, 12:16pm UTC](https://forums.unrealengine.com/t/conditional-blueprints/362547 "2016-07-01T12:16:11Z")

</div>

Hello, I’m sure this is really easy to fix, but i’m new to blueprints. Basically i have an object linked to an animated matinee event, lets say its a window, it just moves up and down when the player dictates it. What i…

---

## [How do I reference current level for a branch's condition?](https://forums.unrealengine.com/t/how-do-i-reference-current-level-for-a-branchs-condition/357811)

<div class="topic-metadata">

**Author:** [@ian80](https://forums.unrealengine.com/u/ian80)\
**Replies:** 2\
**Last updated:** [May 21, 2016, 2:19pm UTC](https://forums.unrealengine.com/t/how-do-i-reference-current-level-for-a-branchs-condition/357811 "2016-05-21T14:19:37Z")

</div>

I want to switch between two levels with a key press. (There are only two levels in my ‘game’.) I want to use a branch with the condition “is level A currently open?” - true loads Level B, false loads level A. Is this …

---

## [Play my flip book material](https://forums.unrealengine.com/t/play-my-flip-book-material/351616)

<div class="topic-metadata">

**Author:** [@MoustikBleue](https://forums.unrealengine.com/u/MoustikBleue)\
**Replies:** 0\
**Last updated:** [March 24, 2016, 1:03pm UTC](https://forums.unrealengine.com/t/play-my-flip-book-material/351616 "2016-03-24T13:03:36Z")

</div>

Hi everyone. I try to use a flip book material on my level. I would like to play him with a condition and juste once … In fact, In the material i have a scalar parameter = 0 “LoupOn1” by default, this parameter control…

---

## [Path Length (Vector) Does not respond to \< INT](https://forums.unrealengine.com/t/path-length-vector-does-not-respond-to-int/345239)

<div class="topic-metadata">

**Author:** [@nmm131](https://forums.unrealengine.com/u/nmm131)\
**Replies:** 8\
**Last updated:** [January 25, 2016, 1:17pm UTC](https://forums.unrealengine.com/t/path-length-vector-does-not-respond-to-int/345239 "2016-01-25T13:17:25Z")

</div>

The Path length is less than 100 units, but the branch still activates true. Vec 0,0,0 (start) Vec 200,200,200 (end) IS NOT \< 100 but it doesn’t work. Any help?

---

## [Conditions for Actor Removing](https://forums.unrealengine.com/t/conditions-for-actor-removing/337054)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_210e8905](https://forums.unrealengine.com/u/anonymous_user_210e8905)\
**Replies:** 0\
**Last updated:** [October 31, 2015, 2:29pm UTC](https://forums.unrealengine.com/t/conditions-for-actor-removing/337054 "2015-10-31T14:29:48Z")

</div>

Hey, In my project I am trying to set up a basic quest, I’ve set the condition so that when the player walks up to an NPC they are given and letter and told to find the person to give it to, this attaches a letter to a s…

---

## [Branch doesn't work; Blueprints](https://forums.unrealengine.com/t/branch-doesnt-work-blueprints/336285)

<div class="topic-metadata">

**Author:** [@TechRay](https://forums.unrealengine.com/u/TechRay)\
**Replies:** 15\
**Last updated:** [October 26, 2015, 12:27am UTC](https://forums.unrealengine.com/t/branch-doesnt-work-blueprints/336285 "2015-10-26T00:27:30Z")

</div>

Hello Guys, I’m very confused using the Blueprints. That you guys know what i want: The Player is walking through an component (weapon) and picks it up. As u see, the Blueprint logic goes through an Branch and it detec…

---

## [Unable to set up a "Look at/LineTrace" event](https://forums.unrealengine.com/t/unable-to-set-up-a-look-at-linetrace-event/335783)

<div class="topic-metadata">

**Author:** [@sisonfire](https://forums.unrealengine.com/u/sisonfire)\
**Replies:** 0\
**Last updated:** [October 19, 2015, 10:39am UTC](https://forums.unrealengine.com/t/unable-to-set-up-a-look-at-linetrace-event/335783 "2015-10-19T10:39:36Z")

</div>

Hi there ! First of all, sorry for my English it’s not my native language. My problem is that i’m unable to set up correctly blueprint in order to be able to set up an event when i’m looking at an object. I search and…

---

## [If x + y + z etc = true then do X](https://forums.unrealengine.com/t/if-x-y-z-etc-true-then-do-x/332145)

<div class="topic-metadata">

**Author:** [@Pantlessnoodle](https://forums.unrealengine.com/u/Pantlessnoodle)\
**Replies:** 10\
**Last updated:** [September 14, 2015, 2:50pm UTC](https://forums.unrealengine.com/t/if-x-y-z-etc-true-then-do-x/332145 "2015-09-14T14:50:49Z")

</div>

Hi guys, ok so basically i have 5 Objects that can be picked up, as they are picked up the actors are destroyed,how do i make it so after all 5 are collected then something happens. eg. If all 5 are collected and the con…

---

## [Animation blueprint transition doubt](https://forums.unrealengine.com/t/animation-blueprint-transition-doubt/328076)

<div class="topic-metadata">

**Author:** [@Nargarcyz](https://forums.unrealengine.com/u/Nargarcyz)\
**Replies:** 2\
**Last updated:** [August 9, 2015, 2:09pm UTC](https://forums.unrealengine.com/t/animation-blueprint-transition-doubt/328076 "2015-08-09T14:09:10Z")

</div>

Hey there. I’d like to know if there is any way to make a transition based on if a key is currently being pressed. For example: If you are pressing the W key and the character hits the ground, play animation 1. However,…

[Next page](https://forums.unrealengine.com/tag/condition/2486.md?match_all_tags=true&page=1&tags%5B%5D=condition)
