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. 

Stealth Game Detection

I know there is probably a really easy way to do this but I can't figure it out for the life of me. I need a system that I put on the enemy's BP where they detect the player if they walk into their FOV. The hard part of this is that: a) they have to see as far as they can(to the farthest wall) and b) they cannot see behind objects. So pretty much a box collider that grows and shrinks and fills all the little gaps in the room. I tried with just a box collider that is massive and set up an overlap for the player where they die if they enter but, the box goes through objects like cover. This is either really easy and i'm stupid or this is really hard and too much to ask for.

Product Version: UE 4.16
more ▼

asked Jul 20 '17 at 09:13 PM in Blueprint Scripting

avatar image

14 5 6 8

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

1 answer: sort voted first

after the collision primitive overlaps the player, pick a random bone on the player, line trace to its location, and compare the hit actor to the overlapped actor. if they are the same, the player has been detected. keep line tracing to a random bone every tick, until the player stops overlapping the collision.

more ▼

answered Jul 20 '17 at 10:04 PM

avatar image

9.6k 320 205 449

(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