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"

Achieving Different Hit Results with Specific Actors

I am just learning Unreal Engine 4's Blueprint system and want to achieve the following:

I have a ball that bounces down a set of stairs. When it hits the stairs it turns a light source a certain color, and when it finally hits the floor it turns it into a different one. I set this goal to myself to learn the tool but unable to achieve it.

I have the following blueprint:

alt text

When the ball hits the stairs (which has the tag "stairs" added to it), the light turns into pink, not blue, which is obviously not right.

Could someone point out my mistake and perhaps help to solve my problem; or, maybe offer a better, easier solution? I welcome any advice as I am just learning to use the tool and want to learn it the right way.

Product Version: UE 4.21
Tags:
more ▼

asked Jan 23 '19 at 11:02 PM in Blueprint Scripting

avatar image

RinceArt
3 1 2

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

This could be caused by setting the tag in the component and not in the actor itself. If you look at the image, you will notice there are two places to input tags in a static mesh actor. If you set it in the tag section (red), you are actually setting it to the component, in your case you want to go to the actor section, expand it so the the advanced settings and then set it in the tags (green). Alternatively you can try and check for the tags in the hit component instead of the actor, since both are returned by the hit event.

alt text

Hope that helps! Have a nice day!

tagissue.png (28.7 kB)
more ▼

answered Jan 24 '19 at 01:42 PM

avatar image

Bariudol
796 21 12 28

avatar image RinceArt Jan 24 '19 at 09:28 PM

Thank you Bariudol. Unfortunately, it didn't work. :( I am also getting an error during runtime that I didn't notice before:

"Accessed none trying to read property [...]"

This could be the clue.

(comments are locked)
10|2000 characters needed characters left
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