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"

Making AI Chase things other than Players?

(Skip to end to see my behavior tree and event graph specifics)

I'm following this tutorial: https://www.youtube.com/watch?v=Gsfnf25WAig&t=986s which creates a behavior tree for AI to see and follow the player. And around 16:24 he sets player character as the target actor to be followed for the blackboard key selector Anything else I put in that value slot hasn't produced any results, the AI just stands still as if it has no target SO How do I make it so that the AI can move towards something BESIDES the player character? I can get it to sense a different trigger to begin the chase (By replacing Get Player Character at 4:38 with whatever actor I want the AI to see first before chasing) BUT I can't seem to change the chase target to anything other than the player

http://imgur.com/a/LgfAk - Behavior Tree

http://imgur.com/a/6UXFF - Inside of the Visioncheck

Product Version: UE 4.15
more ▼

asked Jun 11 '17 at 08:23 PM in Blueprint Scripting

avatar image

1 1 1

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

1 answer: sort voted first

This should work which makes me think your Other Character is None. How do you set it? Can you confirm it's not None?



more ▼

answered Jun 13 '17 at 02:22 PM

avatar image

MieszkoZ STAFF
7.3k 225 57 413

avatar image Generalflood Jun 14 '17 at 04:11 AM

So I'm very new to this and am not sure what it is I'd need to set exactly so I provided this screenshot to see if I'm even on track:


Like I set the actor/object to something in the world - I copypasted the default thirdperson character with no event graph or anything in it, do I need something in it's blueprint as well to communicate with this?

Or am I looking in the wrong place entirely, cuz I was under the impression I just needed to get a variable that refers to an object and plug it in though I figure the 'get player character' provides more information than just the object (if i change the player character to another object the ai will then read it so it's just things the player isn't possessing.

avatar image MieszkoZ STAFF Jun 14 '17 at 05:45 PM

The OtherCharacter in your BP is just a variable and until you explicitly set it it will have value of None. Now you cannot plug a level-spawned/placed actor directly to a BT node because Behavior Trees are level-agnostic. You need to either figure out a way to give BT node ways of reading this data at runtime (and if you don't know where to start I'd suggest following more basic BT tutorials first) or use other means of controlling your AI.

(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