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"

Actor follow pawn

I need that a boat (actor) follow a pawn when the pawn arrives to somewhere. How can I do this? Because I have seen a lot of solutions with "AI move to", but I have an Actor so I can't use it.


Product Version: UE 4.19
more ▼

asked Sep 27 '18 at 11:57 PM in Blueprint Scripting

avatar image

1 1 3

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

1 answer: sort voted first

Hello Aravillanueva12,

You must have your actor be controlled by an AI Controller, similar to how you would have a Player Character be controlled by a player controller. You can setup the logic of your AI Controller using blackboard. If this is your first time working with AI and behavior trees, I would recommend using our Behavior Tree Quick Start Guide.

Link to: Behavior Quickstart Guide

Keep in mind, there are multiple ways to achieve a "follow" effect from one object to another. Blackboard allows you to extend those behaviors and have a finer control over the logical order of executing "tasks", Ai move to would be an example of a task your object would know how to do.

Please let me know if you need any further assistance or explanations.

more ▼

answered Sep 28 '18 at 05:48 PM

avatar image

NicholasMont ♦♦ STAFF
592 3 4 6

avatar image Aravillanueva12 Sep 28 '18 at 11:56 PM

Thank you so much for your answer!

I did all steps of the Guide and I understand that I need an AI Controller to control my Actor, but the BP isn't Third Person Character, so it hasn't animation, I wonder if I must change the ActorBP to another because it doesn't work :(

avatar image NicholasMont ♦♦ STAFF Sep 29 '18 at 05:41 PM

Change your actor bp to be a pawn bp. This can allow input from a player controller, or an AI controller. You can "plug in" your AI controller into the AI controller section of the blueprint for the pawn. alt text

avatar image Aravillanueva12 Oct 01 '18 at 10:45 AM

Okay it's fine but the pawn looks at me if I change my position, I need that he follows me...

avatar image NicholasMont ♦♦ STAFF Oct 01 '18 at 02:26 PM

whoops! my apologies, instead of a pawn bp, set your boat actor to be a character bp, then use the AI Controller class. This should result in the the character following, please let me know if that is successful.


(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