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

avatar image

dari234
6 1 4

avatar image Alphyte Jun 19 '17 at 03:06 PM

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.

avatar image dari234 Jun 19 '17 at 03:11 PM

İ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.

avatar image dari234 Jul 01 '17 at 09:38 PM

++++++++++++

avatar image nienglish Jun 19 '17 at 06:37 PM

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.

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

1 answer: 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

avatar image

BenVlodgi
1.4k 32 11 42

avatar image dari234 Jun 20 '17 at 08:50 PM

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.

avatar image BenVlodgi Jun 21 '17 at 01:12 PM

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

avatar image dari234 Jun 25 '17 at 10:42 PM

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)
avatar image BenVlodgi Jun 25 '17 at 10:52 PM

Those images are too small to read

avatar image dari234 Jun 25 '17 at 11:38 PM
avatar image BenVlodgi Jun 26 '17 at 03:07 AM

BPs look good.

It sounds like the client isn't replicating those variables that you're stored in that macro.

I'm not familiar with multiplayer coding. You need to make sure that those values are stored serverside, where the client can access them.

(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