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"

Is it possible to trigger events when a linetrace STOPS hitting an actor?

I have this current grid system set up. When a raytrace hits an object, it changes the material of that object, like so.

alt text

alt text

As you can see, when a raytrace hits an object, the objects material stays changed.

Is there a way to edit object properties, only when hit by a raytrace?

Product Version: UE 4.12
more ▼

asked Jul 25 '16 at 11:58 PM in Blueprint Scripting

avatar image

13 2 4 8

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

1 answer: sort voted first

So you are selecting only one block at any given time, and this selection is not called at every tick, right?

You should make an object reference variable for your actor that calls the linetrace, and store there the last selected cube. Whenever you cast a new trace, you can check if they are the same, and if not, then you can change the stored one back, and change the new one to the selection material and reset your reference variable to it.

more ▼

answered Jul 26 '16 at 01:17 AM

avatar image

529 25 25 43

(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