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 make a Slender type AI?

Hi guys, this is my first post here and basically I'm attempting to create an AI that acts very similar to that of Slenders' AI so when my enemy mesh spots me, it chases me but I want it to appear randomly and when the player is out of its line of sight, it disappears waiting to reappear in a new location. Making the AI isn't much of an issue its just the appearing at random bit and disappearing when out of sight that is the annoyance. Any help?

Product Version: UE 4.8
more ▼

asked Feb 09 '16 at 12:31 AM in Blueprint Scripting

avatar image

Stefan Samuels
1 1 1 1

avatar image Grumbismal Feb 12 '16 at 08:17 PM

Do you have Skype? If you do, add me and I can help you with this. Skype: mrmcswagboat

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

1 answer: sort voted first

Hey Stefan,

Regarding the appearing and disappearing at random when there's no line of sight, I suggest you to use a dot product (make sure the vectors used are normalized) to get the angle between the player and the AI, and test whether the AI is in your field of view or not.

I attached an example where after the player is warned, something bad happens once they look behind them.

Cheers alt text

more ▼

answered Feb 12 '16 at 09:31 PM

avatar image

Mimicry Games
52 2 4 6

(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