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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Problem with Tracing

Hi all guys!

I have a problem with the Trace.

I would use a multi sphere trace to check if there is an actor in the radius of my torch. The bp works well expect when there is a wall or others components between the actor and the torch.

I took 2 screenshots, in the first i activate the trace, and took cube and actor's hand, but if i move, we can see all actor's body is hit.

alt text

alt text

Product Version: UE 4.8
Tags:
immagine0.png (269.3 kB)
immagine.png (253.0 kB)
more ▼

asked Jan 07 '16 at 04:59 PM in Blueprint Scripting

avatar image

Pierpy89
0 2 3

avatar image Erasio Jan 07 '16 at 05:13 PM

I'm not quite sure what your point is... What exactly isn't working as intended?

avatar image Pierpy89 Jan 07 '16 at 05:25 PM

I wish the cube block only the trace that pass through it.

avatar image Erasio Jan 07 '16 at 05:37 PM

But using a multi trace means you will get everything. It's not a line of sight.

You will have to check that by yourself. For every hit that hits an enemy you will have to do a single line trace and check if it hits the actor or a wall.

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

1 answer: sort voted first

So if I understand well, I need to do a line trace with the coordinates of each points of multi sphere trace, right?

Thnx Erasio

more ▼

answered Jan 07 '16 at 05:42 PM

avatar image

Pierpy89
0 2 3

avatar image Erasio Jan 07 '16 at 05:46 PM

Well you should make sure that you first check if it's something interesting. You don't have to check every wall if the line of sight is obstructed by another wall. You should always keep the amount of actions you do as low as possible.

On that note. You might want to go away from the multisphere trace to a simple sphere collision. Set it to "Overlap All". Collect everything interesting (not walls. Only your characters) in an array and check every if they are in line of sight.

When they leave that sphere remove them from the array.

That will be quite a lot cheaper on performance.

avatar image Pierpy89 Jan 07 '16 at 05:49 PM

Thnx Erasio, now I will try it!

Thank you again!

(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