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"

Show route with simple move to actor

Hi

I am busy making AI for a tower defense game.I am using a simple move to actor to have the AI move from the spawn point to the exit point.

My question is can I somehow show the route that the enemies are running with a line or arrows or something.Since the navmesh updates as buildings are placed this will need to update aswel

Product Version: UE 4.19
Tags:
more ▼

asked Apr 08 '18 at 03:04 PM in Blueprint Scripting

avatar image

MadMarsza
22 3 3 6

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

the picture below shows one way of doing this. basically you get the path then get the path points and from there you just need to draw them via debug lines, spline mesh, or whatever method you want. i dont know how applicable this will be in your case since i did it on the enemy character and you will probably have many enemies at once but im sure you could implement it with a timer or something.

alt text

capture2.png (245.9 kB)
capture.png (240.3 kB)
more ▼

answered Apr 08 '18 at 04:11 PM

avatar image

ThompsonN13
10k 33 8 23

avatar image MadMarsza Apr 08 '18 at 05:04 PM

Works perfectly as is actually.Thanks a lot

(comments are locked)
10|2000 characters needed characters left
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