mirror of
https://github.com/tonytins/citylimits
synced 2025-12-19 22:24:42 -05:00
Behavior Tree addon
This commit is contained in:
parent
5de5a0c315
commit
5fa863114a
50 changed files with 1762 additions and 3 deletions
11
addons/beehave/nodes/decorators/failer.gd
Normal file
11
addons/beehave/nodes/decorators/failer.gd
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
extends Decorator
|
||||
|
||||
class_name AlwaysFailDecorator, "../../icons/fail.svg"
|
||||
|
||||
|
||||
func tick(action, blackboard):
|
||||
for c in get_children():
|
||||
var response = c.tick(action, blackboard)
|
||||
if response == RUNNING:
|
||||
return RUNNING
|
||||
return FAILURE
|
||||
Loading…
Add table
Add a link
Reference in a new issue