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 not working with multiple possessed enemies

Hi! I've followed a serie of tutorials in order to create a simple AI that chases the player if close enough, and wanders in the area if the player is too far away. It (mostly) works if I place one enemy in the level, but when I place more than one of the Character blueprint it stops working. I guess it is just because all of them uses the same set of variables (that are not arrays in my case) and get in conflict with each other, but neither this tutorial nor any other I saw seem to consider the problem, so I don't know if that's actually the problem. I would have a lot of images to post, showing my blueprint flowchart, so in order not to confuse my post I'll post them only if requested. I'll just post some of them. This is my Behaviour Tree alt text This is the Service that makes my AI search for the player alt text Thank you for any suggestion!

Product Version: UE 4.9
Tags:
immagine.jpg (316.2 kB)
immagine.jpg (668.6 kB)
more ▼

asked Jul 20 '16 at 11:57 AM in Blueprint Scripting

avatar image

Piero2495
8 2 4 4

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

3 answers: sort voted first

alt text

Hello, I believe I used the same tutorial as you did, Digital Tutors? Been working on a demo for a class and had the same issue. I took this from another question thread and it worked for me, create an "Event Receive Activation Node", hook that up to a "Get All Actors of Class Node". In the "Get all Actors of Class Node" choose actor class as whatever your AI character was, I tried putting the AI controller here but it didn't work (Enemies would not attack each other, but still would not go after the player).Take the "Out Actors" pin from the "Get All Actors of Class Node" to your "Actors to Ignore Pin". That worked for me. I can't tell you why this works, but it does for me. Good Luck!

example.jpg (558.1 kB)
more ▼

answered Oct 31 '16 at 11:12 AM

avatar image

CrudeLordChubbs
6 1 1

avatar image Niku-zan May 11 '19 at 06:55 PM

Struggled with the same issue, so after hours of headscratching you saved theday! Thanks a lot :D

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

Make sure your BB keys are not marked as "Synced". There seems to be a bug in 4.12 that makes all new BB keys "synched" by default.

Cheers,

--mieszko

more ▼

answered Jul 21 '16 at 09:59 PM

avatar image

MieszkoZ STAFF
7.3k 225 57 413

avatar image MieszkoZ STAFF Jul 21 '16 at 10:00 PM

I've just realized you've marked your post as 4.9. The comment still stands, though :)

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

Thank you for your answer, but unfortunately it looks like my keys are already marked as unsynced. I do not really know what might be the problem. If there is anything that I should post here to help understending what my problem is, please tell me. Thank you in advice!

more ▼

answered Jul 22 '16 at 01:24 AM

avatar image

Piero2495
8 2 4 4

(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