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"

Switch behavior trees while active

I have my AI run one behavior tree by default and that behavior tree contains everything to act as a normal citizen. This behavior tree also checks to see at any time to see if the NPC has changed to a "Guard" or a "Infected State" and for each I want separate tree for Citizen/Guard/Infected State, each with their own individual blackboard. I try and run one of them from one behavior tree and if they have any blackboard set other than the one that the default tree has they wont execute.

Product Version: UE 4.21
Tags:
more ▼

asked Dec 30 '18 at 05:46 PM in Blueprint Scripting

avatar image

TuXsOrDs
116 9 10 17

avatar image TuXsOrDs Dec 30 '18 at 06:01 PM

I found a way around this. If there is a better way to do this please let me know. What I did was created a new task that stopped the current tree and then executed a different tree.

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

1 answer: sort voted first

You could try this:

alt text

0.png (149.8 kB)
more ▼

answered Dec 30 '18 at 06:50 PM

avatar image

Evigmae
1.7k 8 4 8

avatar image TuXsOrDs Dec 30 '18 at 07:23 PM

Thank you, this worked a lot better and more efficient compared to my last way of doing it.

(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