I would really appreciate it, when someone could help me understanding how to write my own CustomForcedBehavior overrides.
I have read the Wiki and also some existing scripts. But till now i don't understand how the PriorityTree works. Here is what i guess what to do:
-Create a root as Composite
-Then add a PrioritySelector which contains an array of "Action(...)" and "Decorator(...)"
-When the CB has been started, HB will go through this tree an perform the Code written in the Action(...) and Decorator(...) classes.
Then i get stuck cause i don't now how HB is going through this list. And what is the difference between Action and Decorator.
I have read the Wiki and also some existing scripts. But till now i don't understand how the PriorityTree works. Here is what i guess what to do:
-Create a root as Composite
-Then add a PrioritySelector which contains an array of "Action(...)" and "Decorator(...)"
-When the CB has been started, HB will go through this tree an perform the Code written in the Action(...) and Decorator(...) classes.
Then i get stuck cause i don't now how HB is going through this list. And what is the difference between Action and Decorator.