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"

One Line Trace for multiple Objects

Hey folks,

so imagine 3 Objects set up behind ech other. When i use LineTraceByChannel it only gives back the first objects it hits. I want it this way. When i press 1 it should go for the very first object. When i press 2 it should ignore the first object and go for the second one. When i press 3 it should go for the third object and ignore the 2 infornt.

Under Collision Presets i set the BuildingTrace to "ignore", this completey ignores the specific object, i dont't want that. Unfortunately i didn't find any TUT's regarding this Problem so far.

Info: I am Using Blueprints. Thanks in advance!

Product Version: UE 4.12
Tags:
more ▼

asked Jun 27 '16 at 11:52 AM in Using UE4

avatar image

dasschlumpf
28 3 4 6

avatar image dasschlumpf Jul 11 '16 at 07:24 PM

I still need assistance in this case.

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

2 answers: sort voted first

Hi there, in your situation you're going to want to use a 'MultiLineTracebyChannel' instead of a single line trace. This returns all hits encountered along the collision line. Then you can choose which ones to ignore by each separate case.

more ▼

answered Jul 11 '16 at 08:15 PM

avatar image

Mookaroni
569 21 9 35

avatar image dasschlumpf Jul 11 '16 at 08:23 PM

Thanks for your reply Mookiez, I was playing with the MultiLineTraceByChannel, apperently I only get One Object back even if it should go through severel obejcts. Do you have any Tutorial or Example i can take a look at? Thanks in advance.

avatar image Mookaroni Jul 12 '16 at 08:08 PM

This should tell you exactly what each of the line traces do

https://www.youtube.com/watch?v=zRSsj3UUI4I

avatar image dasschlumpf Jul 12 '16 at 08:15 PM

Thanks a lot! appreciate it.

Schlumpf

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

Regarding this question.. is the way i described the problem not understandable? Or is it a not easy to answer question? If you have any hints or need any additional information please tell me. Thanks in advance. Schlumpf

more ▼

answered Jul 01 '16 at 06:19 AM

avatar image

dasschlumpf
28 3 4 6

(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