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 Questions

So I have been following a YouTube Tutorial on how to create a basic AI. Ive watched it over and over and over and i think I have everything correct. This is really all i want for right now, the AI just moves from a location when the player gets close enough the AI attacks the player. There are some extra features in the video that i dont really need but for now even after ive tried to make sure that everything is the same as it can be, my AI still acts strange and im hoping that someone might have some answers for me.

Ill detail the things that need adjusting in a list.

  1. First and most importantly the Bot never stops following me, which makes me think the problems lie in the BTS_botDetectEnemy BP because there was a variable named "Chase" that the creator made to make sure that the AI Stops if it breaks line of sight. However with mine Id like it to stop following after a player gets a certain distance away, instead of after breaking line of sight. Id also like it if it just stopped where it was instead of returning anywhere.

  2. The next problem is that after the AI moves to the players location it stops and when I move away the AI stutters in place rapidly changing its rotation as the player moves and only after I move a certain distance does it start to follow me again. So if I stand just a little bit away it doesn't begin to move again, I have to actually travel far enough way then it begins to follow me again. Although this isn't the end all be all its kind of an issue. Id like it not to stutter and no to hesitate before if starts to follow again, its ok if it waits a second or so but no based on distance.

alt text
3. This is one that really confuses me, the AI stops about a meter away form the player, but there is no part of the blueprint I see that tells it how far away to stay when it gets to the player. So I'd like it if the AI got in melee distance before it stopped.

alt text

Product Version: UE 4.9
Tags:
more ▼

asked Nov 05 '15 at 03:06 PM in Blueprint Scripting

avatar image

CodyScrib
53 9 16 22

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

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