bovido/scripts/can_throw_ball_condition.gd
Mathilde Grapin 92ccf7279d Instanciate a ball
Make the enemy throw a ball. It just instanciate a ball in the scene but
does not move it.
2023-06-12 22:06:48 +02:00

8 lines
148 B
GDScript

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