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.
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.
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.
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.
Nov 05 '15 at 03:06 PM
in Blueprint Scripting