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"

AI follow player

hi, i have a question.i need AI to follow me. So i made this : alt text

But , the Ai follow me from the start and when he reach me he stop. But i need for him some kind of range view, and if he lose me he will continue to walk randomly.Can someone help me? P.S. i try the tutorial from UE4 wiki but it doesn't work. i dont' know why.

Product Version: UE 4.8
untitled.png (241.4 kB)
more ▼

asked Jul 20 '15 at 01:29 PM in Using UE4

avatar image

30 9 10 13

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

1 answer: sort voted first

Hello! You need to add a component in the AI blueprint that's called PawnSensing. Once you added the component compile and save. Then you should see somthing like this: alt text

The green cone define the AI sight, the other two are for sound sensing. At first the cone will be flat because by defaut its radius is 90, but you can change it using the PeripheralVisionAngle. Also, the Sight Radius is how far AI can see.

Finally on the EventGraph, whith the PawnSensing component selected, you can call an event named OnSeePawn. From there you can make it follow the player character with AI Move To node.

sin título-1.jpg (419.7 kB)
sin título-1.jpg (419.7 kB)
more ▼

answered Mar 09 '17 at 05:27 AM

avatar image


(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