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"

Getting Wrong Value of a Bool

Hello everyone. I'm working in a 3D side scroller game. My intention is that when I press the key "E" my arrow will be on fire, so the enemy will get on fire too. In the first picture there is my main character Blueprint, in which I activate the bool that from the "myArrow" actor I will call (2nd picture). Everything works by the moment, but when I try to get that value from my "Enemy1" character it always returns the bool false. I have checked and in the arrow class the bool DOES get true, but when I try to get it from the enemy when the arrow collides with him, it is false. I don't know why is this happening. It may be related the way overlaping works, but I didn`t find any other way to do this, because with tags I got some issues. If someone could help me I'd be very grateful. Thanks.

Product Version: UE 4.20
captura1.png (199.6 kB)
captura2.png (173.0 kB)
captura3.png (447.6 kB)
more ▼

asked Aug 14 '18 at 03:52 PM in Using UE4

avatar image

1 1 1

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

1 answer: sort voted first

it could be that your arrow is being destroyed before the script on the enemy is run, try disconnecting the destroy actor in the arrow. also are you getting any errors when running the script.

more ▼

answered Aug 14 '18 at 03:59 PM

avatar image

10.1k 33 10 25

avatar image Daniel_2000812 Aug 14 '18 at 04:09 PM

That fixed it. I thought I was getting a variable to the arrow after the error, so I didn't realised. That was a silly error. Thank you so much for the help and the fast answer.

(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