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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

AI rotating and moving forward (running away)

Hi guys, I'm new to UE so I'll just show the blueprints and see if I'm missing anything. I'm trying to write a task for the AI to rotate and move forward (running away) as shown below. No problem with rotation but what I can't think of is how to get the AI to just move forward. Any ideas?

alt text

Product Version: UE 4.8
Tags:
btt_moveaway.png (651.2 kB)
more ▼

asked Aug 10 '15 at 02:54 AM in Blueprint Scripting

avatar image

BouYea
1 1 2 1

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

2 answers: sort voted first

My way of doing it would be to get a position away from the target you want to run away from by substracting the target and self positions and simply using the Move To behaviour tree node

more ▼

answered Aug 11 '15 at 05:49 PM

avatar image

Guiboune
68 2 3 8

avatar image BouYea Aug 12 '15 at 04:43 PM

I've tried that and it would only run away in the same direction.

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

Get the facing angle of your AI and just let it move toward that direction at certain unit length( a vector times a float), and periodically repeat the process so it just keep running? Might not be the best solution.

I won't be surprised if there is a way to let the AI just keep moving. Say if it's a character with controller, I can just hold down the D-pad or the left stick, and the character will keep going until I release the buttons. Maybe you just need a variable that determines the direction, and speed. Not sure if AIs are able to work this way.

more ▼

answered Sep 02 '15 at 04:42 AM

avatar image

RemoteCrab131
12 10 13 15

(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