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 do get my Ai to detect my player in VR


After watching this tutorial to set my Enemy AI to Roam and Chase I've reached a problem when it comes to have the Enemy AI come after the player when it sees them. How do I get this AI to see the player? Also I would like to see how maybe I can get the player to only be seen if the player is at a certain height aka when the player stand ups from a chair. I was thinking maybe just the AI is trigger by an object attach to the player but I dont know where to start with that.

Product Version: UE 4.17
more ▼

asked Mar 01 '18 at 07:45 PM in VR

avatar image

1 1

avatar image Ghost Miner Jun 13 '18 at 06:02 PM

i'm basically doing the same thing and watched the same video.i'm also having the same problem i can get the Ai to move to a random location but it seems it won't see me at all. and when i look at the tree the player location is invalid. i'm currently doing research to find a way around this and would like to know if you have find a solution yet? if so i would like to know how

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

I suggest to spawn a proxy actor that follows your head component and to program AI to look for this proxy actor. Remember that when you move in VR using your body, the actual VR player does not. The player is basically the playing area, what's moving in it are components: hands and head, but AI cannot track a component.

more ▼

answered Jun 13 '18 at 06:33 PM

avatar image

230 2 12 12

avatar image Ghost Miner Jun 13 '18 at 08:29 PM

how would i do this? i'm still new to Unreal Engine

(comments are locked)
10|2000 characters needed characters left
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