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"

Boolean don't want to play pool *cough*

Hi guys, I builded a inspection system for items you can take to look and read some text. This works almost flawless with some minor problems, but this isn't the issue here.

I also added an outline to the object, when the player looks to the object and is close enough. Works, too. The problem ist, thes outline should dissapear, when the player is inspecting the object.

So I thought I take the bool from the end of the HUD chain, when the HUD is created. When the player is inspecting, the bool sets to true and when the widget gets destroyed, to false.

In my logic this is a good indication for the outline system, when he has to work and when not. But it doesn't - what do I wrong?

alt text

Product Version: UE 4.19
Tags:
boolinspecting.png (814.5 kB)
more ▼

asked May 20 '18 at 11:26 AM in Blueprint Scripting

avatar image

gestoryscht
32 4 14 17

avatar image AJ-Cixelsyd May 20 '18 at 08:25 PM

Can you try printing the value in Event Tick? To see if the value is the one you are expecting. If the value is right, then the logic is wrong. If the value is wrong, you need to fix that first. Maybe something is resetting it, maybe there's more than 1 instance, etc

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

1 answer: sort voted first

Is the bool variable stored inside the Widget blueprint? If it is, then the variable wont exist later when you want to check it because the thing running the code (which is the widget) is destroyed already.

more ▼

answered May 20 '18 at 07:50 PM

avatar image

mightyenigma
3.8k 18 23 20

(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