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"

AIPerception - Visibility

Hi all,

Been having a reasonable amount of success using AIPerception and most of the high level stuff is being done in Blueprints. Currently, I'm working on changing a value on the player to indicate whether they're in a light or dark area. Simple float (0.0f-1.0f to indicate light level)

What is the best/recommended way to go about using this with the AI Perception? Right now, I have the problem that while I can certainly do a check to see if the player/enemy is detected by the sense - I can then check if the player is lit enough to be seen. However, once the player becomes detected - that has already triggered the OnPerceptionUpdated for that sense. Unless the agent moves out of sight range, I will not lose that detection - so cannot issue another Player Detected message.

I feel like I could iterate over this and then do another layer of checks using this:-

https://docs.unrealengine.com/latest/INT/BlueprintAPI/AI/Perception/GetPerceivedActors/index.html

But I am wondering if there is a cleaner way to simply put a condition on the initial detection of the sight sense.

Thanks, - Steve

Product Version: UE 4.17
Tags:
more ▼

asked Aug 28 '17 at 08:47 AM in Blueprint Scripting

avatar image

n0rtygames
1 1 1

(comments are locked)
10|2000 characters needed characters left

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