bovido/scripts/enemy/behavior_tree/can_throw_ball_condition.gd
2023-07-01 13:26:45 +02:00

8 lines
147 B
GDScript

class_name CanThrowBallCondition
extends ConditionLeaf
func tick(actor, _blackboard):
if !actor.ball_in_game():
return SUCCESS
return FAILURE