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"

How to switch the beahviour tree branch upon Bool change in Blueprints

Here Is my blueprint that changes the speed of my AI when They see the player.alt text

But the problem is the decorator on the top selector allways says that the Bool is not set, even though i can watch the bool change from true to false at runtime how can io use this bool to stop the tree running down this branch the minute they see him? So i want the left branch to be stopped when they see him and the right branches executed because of thisalt text

Product Version: Not Selected
Tags:
blueprint.png (227.4 kB)
problemtree.png (130.7 kB)
more ▼

asked Feb 25 '15 at 05:30 PM in Blueprint Scripting

avatar image

Weddy
3 2 3 4

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

1 answer: sort voted first

You can add an Observer to the Selector Composite with the Blackboard check for IsSeen. If you click the Composite, then the Blackboard check you've made. You'll see Notify Observer at the very top. Change this to On Result Change, then change Observer aborts self.

What should then happen is once the IsSeen is updated by your Pawn on OnSeePawn, the observer will abort the composite it belongs to.

Let me know if you understand!

Thanks, Peter L. Newton

more ▼

answered Feb 28 '15 at 10:15 AM

avatar image

PeterLNewton
2.1k 75 36 110

avatar image Weddy Mar 02 '15 at 11:22 AM

Thanks for the quick reply, It worked!

(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