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"

AI Character stay out of sight of the player

Hey guys,

I am working on a little game where a killer chases the player. I did the scripting at the beginning with blueprints only but I want to change to BT and EQS to add more actions easily and have a better process.

Before I start to explain my question I am looking for a solution with EQS only, no tracing with the character blueprint since I already know about this and used it in the prior work and I want to get a distance to the heavy blueprint scripting and using the implemented features as best as possible.

here a visualization of what I want to realize:

alt text

Explanation:

The Player(black circle) looks and moves straight, the AI Character (red circle) doesn't want to be seen so he walks to the yellow circle around the player (the length of way doesn't matter as long the player stays in sight) to don't be caught. The Player will continue moving forward without looking around and the AI Character approach to the green circle (it is the best waypoint since it is close to the player and out of its sight) still staying out of the sight ( an example of movement is the blue line). Once the AI Character is behind the Player the AI Character will approach to a certain radius and stops when the player stops.

This is what I already have:

The AI Character searches for waypoints near to the player (in EQS done with Distance to PawnConext and Distance to Querier) if he sees the player (Trace function in EQS)

alt text

Thanks in advance

Cheers Kevin

Product Version: UE 4.16
Tags:
ai-movement.png (16.9 kB)
eqs.png (44.1 kB)
more ▼

asked Nov 02 '17 at 11:47 AM in Blueprint Scripting

avatar image

MoonwareGames
36 5 11 15

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

0 answers: sort voted first
Be the first one to answer this question
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