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"

AI Perception (sight) not seeing actor

I have a basic AI Perception sight attached to an AI-possessed pawn. In the debug mode (with the perception mode turned on) it shows that the AI can see the player, but it can't see two other simple actors I've put into the scene. Those actors are just regular subclasses of Actor with a Static Mesh and nothing special. I've done everything how every tutorial (and the docs) says to do it, what am I missing? Thanks!

Product Version: UE 4.18
Tags:
more ▼

asked Mar 23 '18 at 05:46 PM in Blueprint Scripting

avatar image

Greenblatt
1 1 2 2

avatar image Nebula Games Inc Mar 23 '18 at 06:07 PM

screen shots of the set up would be helpful, so many things could be an issue

avatar image Nebula Games Inc Mar 23 '18 at 06:10 PM

Also from the sound of it you want the AI to basically see a "block" an un-possessed actor, not a pawn, not a character, just another actor.... I'm not sure that's how AI "perception" works. It's meant to detect "controllable" actors not just a simple static mesh. What are you trying to do with AI perception and a static mesh?

avatar image Greenblatt Mar 23 '18 at 06:13 PM

Essentially, I have food, which is an unpossessed Static Mesh, and I want the AI to go towards it and eat it when it sees it. I thought that's what AI Perception was for.

avatar image Nebula Games Inc Mar 23 '18 at 06:19 PM

No, that's going to be something you script yourself using blueprints or a behavior tree. I have never heard of using AI perception in that way. Unless I'm mistaken it was an improvement on "pawn sensing" and that was as the name implies an ability to "sense" other pawns in the world. AI perception improved upon that back end code and added more features and customizability but I don't think what you're looking for is going to be handled by AI perception

avatar image ThompsonN13 Mar 23 '18 at 09:44 PM

if i were you i would look into using EQS which is a system pretty much made for this type of situation. EQS stands for environment query system. it basically is a way for ai to figure out what around it.

the other option would be to do like nebula said and script the behavior. you could do this pretty easily using a cone shaped mesh and overlap events to get the same result as if you were using pawn sensing.

avatar image Nebula Games Inc Mar 23 '18 at 06:26 PM

So a quick look through documentation and maybe it's possible, although at other points it seems they are talking specifically about pawns. Either way I suggest uploading screen shots so the community can get a better idea of what we are working with.

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

1 answer: sort voted first

Thanks I was trying to get AI to register a sound of impact that a projectile makes on hit but couldn't for the life of me figure it out, and wasn't even thinking it couldn't detect uncontrolled actors! Eye opening and cheers to this whole thread :)

more ▼

answered Dec 19 '18 at 01:36 PM

avatar image

Lobotomiac
8 1 3 5

(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