Announcement

Collapse
No announcement yet.

Problem with booleans

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • replied
    Yes, it works fine in my project. Even with 3 branches.

    Click image for larger version

Name:	BOOL_AND2.jpg
Views:	1
Size:	112.9 KB
ID:	1051950

    Leave a comment:


  • replied
    Just so you know the value on the = or and gate wont update there state until the branch tries to get the value. If the branch hasn't been fired all the gates will show the default state (false) Is the event actually being fired? Can you post more of the BP?

    Leave a comment:


  • replied
    As far as i can see, Eddy71's idea should work, if it doesn't i wonder what would work.

    Just tested it, it works for me so you must've done something wrong.

    Leave a comment:


  • replied
    Originally posted by zeOrb View Post
    Or you can use AND node
    As I said in the first post, AND node doesn't work. This is what happens with AND node:
    Click image for larger version

Name:	AND node.png
Views:	1
Size:	57.3 KB
ID:	1051947

    I've tried AND, EQUAl, NOT EQUAL, OR and a NOT between them and the branch, I can't get it to work.
    I also tried out Eddy71's idea with two branches, but it didn't work either.

    Leave a comment:


  • replied
    Or you can use AND node

    Leave a comment:


  • replied
    You can make your AND condition with two Branch nodes.

    Click image for larger version

Name:	BOOL_AND.jpg
Views:	1
Size:	29.7 KB
ID:	1051927

    Leave a comment:


  • started a topic Problem with booleans

    Problem with booleans

    Hi!

    I'm trying to make my level change after two booleans both are set to false. This is how I have it set up:
    Click image for larger version

Name:	booleans.png
Views:	1
Size:	73.5 KB
ID:	1135879

    However, as you can see, this doesn't work and they never return true. When both are set to false, they return false, and when one is true and one is false, they of course return false. How do I get them to return true?
    (I also tried this with setting it so that instead of false they have to be true, but when both are true, it also returns false)

    I can't set the level to change when they are returning false, because then the level would change when one is true and one is false. "Not equal" doesn't work either, because when they're both false, not equal returns true, as well as when one is true and one is false. "And" doesn't work, because when both are false, it returns false. I've also tried adding "not" between the branch and the booleans to no avail.
    Last edited by rokesy; 06-13-2014, 09:49 AM.
Working...
X