x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Bool not changing when i press a button

alt text

Like i said in the title when i press F in game it turns the light on and off but only plays one of the animations so i'm taking a guess that the bool is not changing, Thanks for any help in advance :D

Product Version: UE 4.11
Tags:
help.png (294.1 kB)
more ▼

asked May 04 '16 at 04:48 AM in Using UE4

avatar image

Creepercatss
3 1 4

avatar image Dodgin May 04 '16 at 05:13 AM

Do a -> toString -> Print String on the bool and you will see what the bool's value is. I'd wager it's something with the animation. Post your results and we'll find out!

avatar image Creepercatss May 04 '16 at 05:58 PM

Thanks for the reply! When i get home today i'll try that. Thanks!

avatar image Creepercatss May 04 '16 at 10:59 PM

alt text

Here is the blueprint script and the print that happens in the game when i press F, It just keeps reading False, False, False ect.... So any help would be amazing. Thanks :D

false.png (695.2 kB)
blueprintfalse.png (279.6 kB)
avatar image VictorBurgos May 04 '16 at 11:00 PM

Look at my answer and accept it:)

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Heh this is much easier than that... you have the bool defaulted to False, so it will always execute to FALSE on the branch unless you are setting that bool somewhere else to TRUE, which I doubt you are. What you could do, since it's a toggle, is use a toggle node ;) It's called FlipFlop.

If this has resolved your issue, please upvote and mark as the answer so we can close this out properly. Good luck!

more ▼

answered May 04 '16 at 10:56 PM

avatar image

VictorBurgos
2.4k 60 27 112

avatar image Creepercatss May 04 '16 at 11:05 PM

Thanks man :D

avatar image Dodgin May 05 '16 at 12:18 AM

Next time you have a question be sure to show the blueprint and properties. It helps helpers out a ton :)

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question