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"

Perception is inconsistent?

I have a problem where my perception component does not seem to be updating correctly. With the debug tools on, I can see that it does notice my AI, but for some reason it's not updating my blueprint correctly.

screenshot 1

The perception component creates a sphere around the polar bear (and on the screenshot it shows white lettered "Sight" next to the polar bear) as it enters the vision cone of the penguin.(blue circle) So it is getting registered. However the "Is enemy visible" boolean variable returns as false.(orange circle)

Screenshot 2

Here's the blueprint I'm trying to use to set the blackboard variable of "is enemy visible". I always seem to get "no debug data" when I try to watch the values after breaking. Is that a problem? I'm using a "On Perception Updated" node to start everything. I'm wondering if perhaps it's not updating often enough?

Does perception get updated simply by an object moving around in the perception cone? or only if something enters/exits the cone? If it's the latter, how can I force an update more often?

The "closest enemy" (blue circle) variable is returning the polar bear shown in the above screenshot (it shows red transparent letters "is closest") so I'm not sure why it's not updating correctly.

What I want is the "is enemy visible" (orange circle) variable to return as true as long as the perception component does see the enemy. But I guess I'm missing something.

Perhaps there are better ways to check for visibility?

Product Version: UE 4.9
Tags:
more ▼

asked Nov 23 '15 at 06:51 PM in Blueprint Scripting

avatar image

Gmi
6 1 4 5

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

0 answers: sort voted first
Be the first one to answer this question
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