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. 

Line Trace never spots player, even if "seen"

Hello! :) I'm trying to make it so if the player walks into a Light he is being "seen" but if he steps into a Light and is behind an object at the same time he is still hidden. I got everything done except the Line Trace, which is breaking my head. Basically, I'm doing a Line Trace by channel, then do a break hit and check what object it hit. if it hit the player actor the player is spotted. If it hit another object before that the player remains hidden. This does not work however. It never recognizes the player at all! Edit: I also have set the collision settings on player AND capsule to block on everything, just to be sure. Here's my blueprint code, and the state in the Game:

http://www.tiikoni.com/tis/view/?id=7fb6145 http://www.tiikoni.com/tis/view/?id=4a82d6e http://www.tiikoni.com/tis/view/?id=34ded86

I hope someone can help me I am really frustrated and under time pressure as this is for a project at uni and deadline's approaching. >_<

Thank you in advance! <3

Product Version: UE 4.7
more ▼

asked Feb 24 '16 at 10:53 AM in Blueprint Scripting

avatar image

1 1 3 4

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

1 answer: sort voted first

I'm not 100%, but I suspect its because you're tracing by visibility - and there's nothing visible on your character to hit. Try sticking a static mesh (just a sphere will do) on your player pawn's root and see if that makes any difference.

more ▼

answered Feb 24 '16 at 12:14 PM

avatar image

283 15 17 31

avatar image Young-Eagle Feb 24 '16 at 12:25 PM

OMG THANK YOU! This solved the problem! I was already going nuts about it. Finally it works. Once again, thank you so much!

avatar image dtschida Mar 20 '17 at 01:12 PM

A year later, can you please consider reposting the links you put up in your original question? I am trying to track down a similar issue for a VERY similar use case (security cameras rather than lights).

Does a Skeletal Mesh work or do I need to add specifically a static mech? I have the default Unreal player model on my pawn, but I am not sure if it is working right.

(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