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"

When my AI sees the player, the behavior tree only calls to one decorator

I have a behavior tree that has 4 decorators.

  1. The AI simply moves around idly.

  2. AI gets distracted by a lamp if it's bright enough

  3. A harmless AI follows the player if they see him

  4. A hostile AI follows and attacks the player if they see him. Hostile AIs move much faster.

The last two are the ones I'm having problems with. The AI is supposed to shuffle between a harmless and hostile AI at random with a variable, and a harmless and hostile AI have their own decorator. But for some reason, the behavior tree only calls to the hostile AI decorator, even if my AI is harmless. It works fine with idle and the lamp, but it's having trouble choosing between the last two. I need to make it so that the harmless AIs don't move as fast as the hostiles.alt text

Product Version: UE 4.21
Tags:
more ▼

asked Feb 22 '19 at 11:05 PM in Blueprint Scripting

avatar image

ReallySaltyPeps
1 1

avatar image lumbabumba Apr 02 '19 at 07:39 AM

"The AI is supposed to shuffle between a harmless and hostile AI at random with a variable" what is the random number here? The Determinator? Where is this random number coming from?

I could not see where this number is coming from.

(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