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"

How can I make a custom move to task?

I'm trying to make my own MoveTo task for the behavior tree using "move to actor", but it ends before my bot reaches the goal. How can I make a good "MoveTo"?

alt text

Product Version: Not Selected
custommoveto.png (342.5 kB)
more ▼

asked Dec 23 '14 at 04:07 PM in Using UE4

avatar image

116 10 61 25

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

1 answer: sort voted first

The problem you're experiencing is caused by misuse of MoveToActor's out pin. It's not a latent function and it's finishing as soon as the request to move to actor is made. The way you have this set up results in finishing the task as soon as the request is made, and I not waiting for the actual move to finish.

Why do you need a custom move-to BT task?



more ▼

answered Dec 25 '14 at 05:20 PM

avatar image

MieszkoZ STAFF
7.3k 225 57 413

avatar image Loxli Dec 29 '14 at 08:13 AM

I need my own "Move To" to implement an "Event receive Abort" in order to stop special animations and sounds. I tried to use blackboard but it doesn't work as I expected.

avatar image MieszkoZ STAFF Dec 29 '14 at 08:44 PM

You might want to try using AIMoveTo BP node. This is a special, custom blueprint node that will trigger the OnSuccess or OnFailure output when the move is finished.

avatar image Loxli Dec 30 '14 at 02:40 PM

Yeah I'm using it, but now I have another problem. I set target actor as a destination, but my bot doesn't follow the actor, instead it goes to some old position of the target it should follow.

I'm sorry, It's difficult to explain.

avatar image MieszkoZ STAFF Jan 07 '15 at 03:33 PM

I've fixed it on Dec 30, but only recently it made it to the github repo. Anyway, it's fixed :)

avatar image mtrebi May 12 '16 at 08:33 AM

Is there a way to specify a custom filter using AIMoveTo function?

(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