8 lines
147 B
GDScript
8 lines
147 B
GDScript
class_name CanThrowBallCondition
|
|
extends ConditionLeaf
|
|
|
|
func tick(actor, _blackboard):
|
|
if !actor.ball_in_game():
|
|
return SUCCESS
|
|
return FAILURE
|