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 Strafe/Dodging?

Hello, I am trying to find a way to make an AI strafe/dodge without a behavior tree; I need the AI to be smart and literally dodge bullets. If I can have some blueprint help that would be great! Thanks! -CB

Product Version: UE 4.19
Tags:
more ▼

asked Jun 05 '18 at 01:20 AM in Blueprint Scripting

avatar image

Calibrator76
1 1 1 1

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

3 answers: sort voted first

This is part of whole ai tutorial, imo best for people starting with ai in UE https://www.youtube.com/watch?v=HSmYOvf869E

Here you have strafe, I suggest try whole tutorial, not my.

more ▼

answered Jun 07 '18 at 06:25 PM

avatar image

Vaheva
1.3k 24 25 49

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

I never did any AI yet, but maybe I can help by asking clarifying questions.

Do you want the AI to dodge bullets coming at him from the player while still running toward the player, just strafing as he goes?

Unreal Tournament (every version) does this. They can even dodge rockets while trying to reach a powerup while trying to keep you where they can continue to shoot at you. You might be able to find out how it's done by studying the open source Unreal Tournament 4 project, though I'm not sure if they have AI implemented to the extent in that version as they do in the previous commercial versions.

more ▼

answered Jun 07 '18 at 04:51 PM

avatar image

mightyenigma
3.8k 18 20 20

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

You need to have an AIController that, by using AIPerception, or some other mechanism, detects the bullets and then triggers an AIMoveTo to a position on the left (or right) of the possessed pawn.

more ▼

answered Jun 07 '18 at 05:24 PM

avatar image

Xptohz3_turbo
86 2 3 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