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"

VERY SIMPLE AI, run to player

Hey, I'm working on AI and all the tutorials I've found are waaay too complicated for what I want. I just need simple blueprint script to make the AI always run towards the player following the nav mesh. Tutorials I've found are either using the level blueprint or set up a "Find player", "Attack Player" or "Return to Patrol".

I want the AI to spawn, then the AI runs to the player. Without using the Level BP since I plan on making multiple instances of the AI.

Any help?

Product Version: Not Selected
more ▼

asked Mar 20 '15 at 04:22 PM in Blueprint Scripting

avatar image

50 4 7 11

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

1 answer: sort voted first

You basically need this in your character's BP:

alt text

If you want AI to keep on doing that after reaching player (or failing) drag the connection from OnSuccess (and/or OnFail) back to exec pin of AI Move To.

This piece may have issues with AI present on the map before player spawns. Adding a delay after Event Possessed will solve most of the cases.



movetoplayer.png (63.5 kB)
more ▼

answered Mar 24 '15 at 01:07 PM

avatar image

MieszkoZ STAFF
7.4k 225 57 414

(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