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"

How to make A.I. aware of damage?

I have a.i. enemies that can be killed with damage. The problem I am having is when they take damage from me they do not focus on me. They ignore me. Ive used the event Any Damage and the damage causer link. But I cant get the result I am looking for. I would like for them to take any damage from me and then instantly look for me or at least look in my direction. I have used several nodes including the Set Focus and Set Focal Point. So my question is...How would you set it up so that your enemies will be aware of damage/attacks against them? How would you set it up so that they will go after the player?

Product Version: UE 4.7
Tags:
more ▼

asked Jun 07 '15 at 01:38 AM in Using UE4

avatar image

LEIT
58 13 12 13

avatar image LEIT Sep 23 '15 at 11:47 PM

Here is my set up. Its in my controller for my A.I. What is wrong?alt text

damage.jpg (1.7 MB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

I figured it out. This set up works if it is in the right place. I used a Set Focus instead of Set Value as Object. This doesn't work because its in the controller Blue Print. Now that I have put it into my a.i. enemy blue print, it works fine. The controller doesn't register damage. Now when i land an attack on them, they acknowledge it!

more ▼

answered Oct 05 '15 at 10:30 PM

avatar image

LEIT
58 13 12 13

avatar image LEIT Oct 07 '15 at 07:16 PM

The set value as object works better than the set focus node. My behavior tree sets the focus elsewhere, so I was getting unstable results.

(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