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"

MULTİPLAYER Aİ FOLLOW NEAREST PLAYER

Hİ I need basic Ai it should follow nearest player and work multiplayer ı waiting your answers. Thank you !

Product Version: UE 4.15
Tags:
more ▼

asked Jun 19 '17 at 03:01 PM in Using UE4

dari234 gravatar image

dari234
1 1 1

Alphyte gravatar image Alphyte 6 days ago

Ummm. I think you should first google this or take a course before you ask these types of questions. I know the answer but it is very hard to explain in text format.

dari234 gravatar image dari234 6 days ago

İf its hard to explain can you make a project and I will download it. Because I alredy make search on google but I couldn't make it.

nienglish gravatar image nienglish 6 days ago

https://docs.unrealengine.com/latest/INT/Engine/AI/BehaviorTrees/QuickStart/index.html

The documentation follows just that, I don't know about multiplayer but I'd start here.

dari234 gravatar image dari234 1 hour ago

alt text

One guy helped me for find closest character and distance this blueprint work perfectly but when I try to Ai move to :( Server follow fine but when he should follow client1 Ai going to in the middle on map alt text alt text

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

Game development is about learning the basics, then building a game in your capabilities. And when you want to learn more, read tutorials, and the API. When you're stuck on something that should work, but doesn't... you come here.

To find the nearest player, you can either use a Pawn Sensor, or get a list of all actors of classes you want to follow, and subtract their World Location from yours to get a difference vector, Get Vector Length to get the distance. Then use a loop to figure out which Actor had the lowest distance.

Here is a good stream about AI from Epic. Getting Started with AI

more ▼

answered Jun 20 '17 at 04:36 AM

BenVlodgi gravatar image

BenVlodgi
360 10 5 13

dari234 gravatar image dari234 5 days ago

Thank you for comment but I don't understand english very well I still trying to make this but I stuckt and I don't know what should I do.

BenVlodgi gravatar image BenVlodgi 4 days ago

Updated my answer with a link to a stream to help.

dari234 gravatar image dari234 1 hour ago

alt text

One guy helped me for find closest character and distance this blueprint work perfectly but when I try to Ai move to :( Server follow fine but when he should follow client1 Ai going to in the middle on map alt text alt text

closest.png (52.2 kB)
kanvfnhr.png (40.8 kB)
yqdoqc8r.jpg (13.7 kB)
(comments are locked)
10|2000 characters needed characters left
more ▼

answered Jun 25 '17 at 11:40 PM

dari234 gravatar image

dari234
1 1 1

(comments are locked)
10|2000 characters needed characters left
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