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 you reset a behavior tree composite node?

If I have a sequence for example, but something happens that makes me want to re-run the logic from the start because of an interrupt, how would I do that?

I THOUGHT I could create a blackboard decorator that aborted itself on VALUE change (not results change) so that even if the state is reset to run this same branch (so the state is set from MoveToEnemy to MoveToEnemy for example), the decorator would reset the sequence. it doesn't work so I'm clearly not understanding something or doing it wrong!

Here's what I was trying -

alt text

Product Version: Not Selected
capture.png (19.5 kB)
more ▼

asked Jan 03 '15 at 03:19 PM in Blueprint Scripting

avatar image

Asher S Einhorn
650 93 80 180

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

1 answer: sort voted first

Currently you can't restart composite node directly, it would have to be another abort mode of decorator (as in: self - "abort and try next", lower pri - "abort other and try entering"). It's still possible, although you need additional selector on top with always failing task, something like this:

alt text

Condition on decorator doesn't really matter, it must react to value change to initiate task search.

more ▼

answered Jan 07 '15 at 01:37 PM

avatar image

IceWraith STAFF
421 12 7 20

avatar image Asher S Einhorn Jan 07 '15 at 06:54 PM

This is what I did but it's horribly hacky. I just want a way to, well yes, reset a selector / sequence. surely that's pretty basic functionality? (I just realized that sounded a bit bitchy, it really wasn't meant that way :) )

(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