bovido/scripts/enemy/behavior_tree/can_throw_ball_condition.gd

8 lines
147 B
GDScript3
Raw Permalink Normal View History

class_name CanThrowBallCondition
extends ConditionLeaf
func tick(actor, _blackboard):
2023-07-01 13:26:45 +02:00
if !actor.ball_in_game():
return SUCCESS
return FAILURE