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"

Line Trace not outputting the correct hit results?

Iv spent the past few days trying to solve this problem, im not sure what im doing wrong as it all seems logically sound, When the AI starts to attack I want it to trace to see if the player's shield is in the way of the "hitbox" then begin the correct event accordingly, whatever I do the trace will not pick up either and always fires from the false's BUT the line trace is hitting something, I don't know what though as all the hit results are "out of scope". Any ideas? Or am I just doing this completely wrong? Im very new to tracing casting ai etc, cheers.

alt text

Product Version: Not Selected
screenshot_4.png (360.4 kB)
screenshot_4.png (360.4 kB)
more ▼

asked Apr 29 '15 at 01:19 PM in Blueprint Scripting

avatar image

6 1 3 4

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

2 answers: sort voted first

First of all you should add a branch node after the trace with the "Return Value" output as flag, so it will only run when it actually hit something. If it does and you want to know what it hit, you could use a print node to display the name of the hit actor and component.

more ▼

answered Apr 29 '15 at 01:25 PM

avatar image

452 33 32 54

avatar image PTF40k Apr 29 '15 at 01:37 PM

Thank you very much! Changed it to trace by object so I can filter it out.

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

Just an fyi that there are issues with line trace that should be fixed in 4.8: https://answers.unrealengine.com/questions/176733/line-trace-gives-result-from-previous-set-of-line.html

more ▼

answered Apr 29 '15 at 01:42 PM

avatar image

99 3 4 5

(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