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"

AI Perception Height

Hi guys! I'm making a stealth game wherein the player can crouch to take cover behind objects such as tables. The problem is, the player isn't detected by the AI perception even if he is standing behind a table, where half of his body can be seen. I think this is because the AI Sight trace is blocked by the table because the end trace is pointed at the middle of the character.

So my question is, how do you adjust the height from which and to which the AI sight perception is pointing at??

Product Version: UE 4.11
more ▼

asked May 18 '16 at 04:30 AM in Blueprint Scripting

avatar image

85 11 16 23

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

1 answer: sort voted first


The sight perception is only activated if the agent can see the middle of the player ( I'm pretty sure it uses a trace to the center of the agent).

I am not sure if there is a simple way to do it just modifying one parameter like the height of the trace. But what you can do (see this question for further info) is make your character class derive from IAISightTargetInterface and override CanBeSeenFrom. Then in this function you can test which points you want inside. For example, in my game, I check the visibility to the head and both shoulders, since these are the topmost leftmost and rightmost points of my char.

Hope this helps,


more ▼

answered May 18 '16 at 08:33 AM

avatar image

348 16 24 27

avatar image Jin_VE Dec 06 '17 at 12:21 PM

Good info. That's an introduction into a whole new layer of the perception system. IMO this should be marked as the answer.

(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