Mathilde Grapin
1aed988149
Add the Beehave addon. Make the enemy do the same thing as before but with a behavior tree.
12 lines
348 B
GDScript
12 lines
348 B
GDScript
## Conditions are leaf nodes that either return SUCCESS or FAILURE depending on
|
|
## a single simple condition. They should never return `RUNNING`.
|
|
@tool
|
|
@icon("../../icons/condition.svg")
|
|
class_name ConditionLeaf extends Leaf
|
|
|
|
|
|
func get_class_name() -> Array[StringName]:
|
|
var classes := super()
|
|
classes.push_back(&"ConditionLeaf")
|
|
return classes
|