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"

Making a moveTo task that updates location

I am using a Blackboard key to store a Vector that my Pawn is supposed to move to through the Behavior Tree, but when I add a new location the pawn moves to the first location first and only then continues towards the new one instead of immediately switching directions.

I've tried using the Stop Movement node both immediately before and after changing the vector Key, but this results in a slight pause between movements which adds significant delay to any inputs that are supposed to change where the pawn is going and can slow down the pawn if the key is updated multiple times.

Is there any way to update the MoveTo location, or make a new Task, so that the pawn neither continues going towards the previous location nor stops, but starts going towards the new location instantly?

Product Version: UE 4.18
Tags:
more ▼

asked Feb 21 '18 at 01:31 PM in Blueprint Scripting

avatar image

Sir Beerington
3 2 3

avatar image Exonfluxx Feb 21 '18 at 02:37 PM

Can you show the part of the blackboard in question ?

Also I think you answered your question already.

avatar image Sir Beerington Feb 21 '18 at 04:02 PM

Here are the blackboard, the behavior tree and the part of the graph that's called when I want to change the location to move to:

alt text

alt text

alt text

With this setup there's a noticeable delay between when the pawn stops moving towards the old location and starts moving towards the new one, making it impossible for the pawn to react quickly and slowing it down to as much as half its normal speed if the location is changed too often. Putting the Stop Movement function before setting the key gives the exact same result.

bb.png (30.7 kB)
bt.png (36.8 kB)
graph.png (86.2 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Make a new task to move to next location. once it completes the sequence it will return to the first node and that will be considered the next location.

I think this is what your trying to do .

more ▼

answered Feb 22 '18 at 12:21 AM

avatar image

Exonfluxx
384 1 5 8

avatar image Exonfluxx Feb 22 '18 at 01:27 PM

Glad I Could Help :-)

(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