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"

How to go about making VR AI enemies that run towards the player

Ok, so I'm looking to create multiple VR AI enemies that just run towards my player, I'd like them to spawn from multiple points around me. Just wondering how I'd go about doing that?

Product Version: UE 4.18
Tags:
more ▼

asked Mar 08 '18 at 12:56 AM in Blueprint Scripting

avatar image

UrMumGay1ol
1 1 2 3

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

1 answer: sort voted first

If AI going to stay that simple, you can skip setting up BehaviorTree (and BlackBoard). And just use "AI MoveTo" node in your created AI_Enemy_Pawn.

So, you will need to:

  1. Create AI_Enemy_Pawn with assigned AIController

  2. Inside it's blueprint conect AIController to AI MoveTo node. for AI MoveTo node set your player as target actor and Self as Pawn.

  3. Set NavMesh around your playing field, so AI can actually move around.

Hope it helps :)

more ▼

answered Mar 08 '18 at 02:11 AM

avatar image

AyanMiru
333 4 6 15

avatar image UrMumGay1ol Mar 09 '18 at 04:16 AM

Sorry, I'm very new to this engine. I don't really understand steps 1 and 2, could you explain them more thoroughly please?

(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